As long as you have the appropriate JRE set up in the Eclipse options, and the compatibility options set up correctly, you oughtn't to need a separate .jar at all.
Joined: May 29, 2005
I know that it is supposed to be quite straightforward.... But it doesn't work for me...
Can you detail me your JRE setup?
I have red somewhere that I needed to include jars in my project java build path. C:\eclipse-2.1.0\plugins\org.eclipse.jface_2.1.0\jface.jar C:\eclipse-2.1.0\plugins\org.eclipse.runtime_2.1.0\runtime.jar C:\eclipse-2.1.0\plugins\org.eclipse.swt.win32_2.1.0\ws\win32\swt.jar C:\eclipse-2.1.0\plugins\org.eclipse.ui.workbench_2.1.0\workbench.jar C:\eclipse-2.1.0\plugins\org.eclipse.core.runtime_2.1.0\runtime.jar
The problem is that it is an old version of Eclipse and now the jars don't have the same name anymore. So I put thoses ones...
My classes compiles, but there are problems at runtime.
BTW my installed JRE is JRE1.6.0
Thanks a lot for your help
Joined: Oct 13, 2005
Those aren't .jars for your project build path. If anything, they are .jars which underpin Eclipse. If your project compiles at all, that suggests it has all its .jars already.
I would suggest you repeat the download of Eclipse. You don't actually need to install it on Windows, since it is an executable .jar. All I did was to un-zip the downloaded file into an appropriate folder (C:\Program Files\Eclipse\Eclipse_3.2.2 will do nicely), then open the file with Windows Explorer. Find the "eclipse.exe" icon which is round and blue, R-click it and drag it onto your desktop. Then click "copy here" or "make shortcut here." You get an Eclipse icon on the Windows desktop which will start Eclipse when double-clicked.
I think this thread ought to be transferred to the IDEs forum . . .
Joined: May 29, 2005
I just freshly installed Eclipse and I do know how to do it!
But if you don't include at least the SWT and JFace related jar in the project classpath it won't compile at all! I mean ma java classes with SWT and JFace code will not compile...the rest is fine of course.
That is why I added them... and that is also what all the tutorial on the subject says...
But in my case, and I don't know why, It will crash at runtime.