Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » User Libraries promlem with M8
User Libraries promlem with M8 [message #151166] Sat, 27 March 2004 14:20 Go to next message
Eclipse UserFriend
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 #151805 is a reply to message #151166] Wed, 31 March 2004 07:13 Go to previous messageGo to next message
Eclipse UserFriend
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
>
Re: User Libraries promlem with M8 [message #154600 is a reply to message #151805] Fri, 16 April 2004 07:35 Go to previous messageGo to next message
Eclipse UserFriend
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.

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
Re: User Libraries promlem with M8 [message #159460 is a reply to message #154600] Wed, 19 May 2004 11:13 Go to previous message
Eclipse UserFriend
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
>>>
>>>
>>>
>
>
>
>
Previous Topic:Is anyone able to use the AST for modiyfing not opened files in the Java editor?
Next Topic:Can't create project with overlapping directories and CVS
Goto Forum:
  


Current Time: Sun May 11 23:00:13 EDT 2025

Powered by FUDForum. Page generated in 0.02871 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top