[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: Eclipse ignoring JAVA_HOME?

Sorry, I may have misunderstood you. Are you writing a plugin for Eclipse, or writing a plain Java program using eclipse? I was answering for the eclipse plugin development case. If you are writing a plain Java program and just launching it from Eclipse, no extra arguments should be required. When you launch the program for Eclipse, right click on the launch in the "Debug" view, and look at "Properties". This will tell you the exact command line that Eclipse used to launch your application. This might point to what you are doing differently from running at the command line.
--


Tshwala wrote:
Hi,

I tried this


eclipse -vmargs -Dosgi.parentClassloader="ext"


and it didn't make any difference so I went back to addding
SWT manually. I have a few more questions though.

1)My rxtx jar works out of the ext directory without adding it manually to
the java bild path, why?

2)Even after adding mysql-connector-java manually to the java build path I
still get the following error..

java.lang.ClassNotFoundException: com/mysql/jdbc/Driver
	at java.lang.Class.forName0(Native Method)

at the line
  Class.forName("com.mysql.jdbc.Driver").newInstance();

Again this works perfectly in the console.

3)If I were to use the line


eclipse -vmargs -Dosgi.parentClassloader="ext"


Where would I specify the .so files for eclipse for example?

Thanks
Tshwala