User Libraries promlem with M8 [message #151166] |
Sat, 27 March 2004 14:20  |
Eclipse User |
|
|
|
Hello,
I'm testing the M8 new user libraries feature, but I'm in trouble.
My test:
1. Window->Preferences->Java->User Libraries->New
2. User Library Name: "HSQLDB"
3. Add Jars -> "X:\HSQLDB\LIB\HSQLDB.JAR"
4. OK
5. File->New->Project->Java Project->Project Name: "MyProject"
6. Libraries->Add Library->User Library->"HSQLDB"
7. Finish
8. File->New->Package->TestUL
9. File->New->Class->HSQLDB
10. I write:
[...]
try {
Class.forName("org.hsqldb.jdbcDriver");
} catch (ClassNotFoundException e) {
System.out.println("HSQLDB JDBC Driver not found.");
System.exit(1);
}
[...]
11. Run->Java Application: "HSQLDB JDBC Driver not found."
If I add the HSQLDB.jar by hand to the class path, all works.
Is this a bug, I'm doing something wrong?
Thanks,
Francesc
|
|
|
|
|
Re: User Libraries promlem with M8 [message #159460 is a reply to message #154600] |
Wed, 19 May 2004 11:13  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Colin Cooper wrote:
>Martin,
>
>I've been seeing the same behaviour. The new user libraries in M8 are
>something I've been waiting for -- so I converted all of my old library-only
>projects over to them straight away. Problem is at runtime -- the
>configuration doesn't see the user libraries in its classpath.
>
>WORKAROUND: Mark all the user libraries for export, then adding the project
>*again* to the launch configuration's "User Entries" classpath.
>
>I was about to enter a bug report, but found your 56530. Do you think the
>problem you describe there is the source of this problem? If not, I'll file
>a new bug.
>
>
I suggest to file a new bug report since currently we are quite busy
i.e. bug reports will get attention but we might not be up to date
reading newsgroups.
Dani
> Regards,
> Colin Cooper
>
>
>"Martin Aeschlimann" <martin_aeschlimann@ch.ibm.com> wrote in message
>news:c4ecbe$nhu$1@eclipse.org...
>
>
>>Can you have a look at the class path that was used when launching? To
>>do that, select the process and select 'Properties' from the context menu)
>>Please file a bug so this doesn't get forgotten
>>
>>Martin
>>
>>Francesc Rosés wrote:
>>
>>
>>>Hello,
>>>
>>> I'm testing the M8 new user libraries feature, but I'm in trouble.
>>> My test:
>>> 1. Window->Preferences->Java->User Libraries->New
>>> 2. User Library Name: "HSQLDB"
>>> 3. Add Jars -> "X:\HSQLDB\LIB\HSQLDB.JAR"
>>> 4. OK
>>> 5. File->New->Project->Java Project->Project Name: "MyProject"
>>> 6. Libraries->Add Library->User Library->"HSQLDB"
>>> 7. Finish
>>> 8. File->New->Package->TestUL
>>> 9. File->New->Class->HSQLDB
>>> 10. I write:
>>> [...]
>>> try {
>>> Class.forName("org.hsqldb.jdbcDriver");
>>> } catch (ClassNotFoundException e) {
>>> System.out.println("HSQLDB JDBC Driver not found.");
>>> System.exit(1);
>>> }
>>> [...]
>>>
>>> 11. Run->Java Application: "HSQLDB JDBC Driver not found."
>>>
>>> If I add the HSQLDB.jar by hand to the class path, all works.
>>>
>>> Is this a bug, I'm doing something wrong?
>>>
>>> Thanks,
>>>
>>> Francesc
>>>
>>>
>>>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02871 seconds