Welcome! Log In Create A New Profile

Advanced

java errors?

Posted by Anonymous User 
Anonymous User
java errors?
May 21, 2007 08:21AM
Thought I would start a new thread,

right I've followed teh instructions twice. (running windows xp).

The 2nd time i unistalled all java versions, subclipse, java 3d ect and started again.

But I still get the following errors any idea. It really does look like java 3d or some other component of java hasn't installed or hasn't installed to teh right place.

java.lang.UnsupportedClassVersionError: javax/vecmath/Tuple3d (Unsupported major.minor version 49.0)
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$100(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	at org.reprap.Main.createAndShowGUI(Main.java:313)
	at org.reprap.Main.access$24(Main.java:77)
	at org.reprap.Main$23.run(Main.java:574)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Re: java errors?
May 21, 2007 02:30PM
This looks to me like Eclipse found the libs OK, but the version of (part of) the vecmath library is not what the reprap code expects, so it complains. If the libs were in the wrong place, Eclipse would not even build the project at all, so you won't be able to run it (this is based on personal experience of putting the libs in the wrong place!). You got further than that -- so the libs appear to be installed and in the right place.

What exact version of the java3d libraries did you install? Where did you download them from?

BTW, I just went through the full software setup on Ubuntu 7.0.4 using Sun Java 6, and got it all working happily (no RepRap hardware, just the software!) last night. I need to write up what I did, since it deviates slightly from the Wiki instructions.

Hoping this helps,

Jonathan
Anonymous User
Re: java errors?
May 21, 2007 02:37PM
I followed the reprap instructions.

I wiped all java files and started again.

j2re-1_4_2_14-windows-i586-p.exe
eclipse-SDK-3.2.2-win32.zip
Subclipse 3.0/3.1
Mylar and mylar updates
java3d-1_5_0-windows-i586.exe
Re: java errors?
May 21, 2007 03:50PM
> java3d-1_5_0-windows-i586.exe

Which instructions were you using? The instructions at

www.reprap.org/bin/view/Main/RepRapMicrosoftSoftware [www.reprap.org]

suggest using an earlier version of the Java3D codebase, you might want to try

download.java.net/media/java3d/builds/release/1.4.0_01/java3d-1_4_0_01-windows-i586.exe [download.java.net]

instead? I think I read somewhere in the Wiki or forums that there an issue with Java3D 1.5.0 and Reprap?

No guarantees, I've not tried a Windows install of the Reprap software environment yet, but it might be worth a try.

Jonathan
Anonymous User
Re: java errors?
May 21, 2007 03:58PM
double post - was some working being done, or was it over loaded. Just seen the PCF article.

Edited 1 time(s). Last edit at 05/21/2007 04:52PM by AcidHell2.
Anonymous User
Re: java errors?
May 21, 2007 04:50PM
Hey thanks that works, the windows install needs some work.

hhere's a start, It's only rough, I thought who ever wrote the original could re-write it to keep the same feel/flow.


from here
[www.reprap.org]

Quote

Subclipse: version control under Java
All of RepRap is maintained under the Subversion version-control system. This allows easy updating of source code, and also roll-back to previous versions should that be needed. The section of Subversion that works in Eclipse is called Subclipse. It installs itself from within Eclipse, and instructions for doing that are available from this link.
follow the instructions on that Subclipse webpage, then close eclipse.
Once Subclipse 1.0.x (Eclipse 3.0/3.1)

You will then need to install Mylar,

Name: Mylar
URL: [download.eclipse.org]

and then the mylar update
Name: Mylar update
URL: [download.eclipse.org]
you can now install subclipse

Name: Subclipse 1.2.x (Eclipse 3.2+)
URL: [subclipse.tigris.org]


Note that if you are behind a firewall or use an HTTP proxy server you may need to configure Eclipse so that it knows about that before you install Subclipse. In Eclipse go to the menu: Window -> Preferences -> Install/update and enter the location of the HTTP proxy machine on your network and its port number (usually 3128, but check with your network manager if you are not sure about this). If you are a private individual on broadband you should have a direct connection and this won't be needed.

Quote

3D graphics in Java
The host RepRap software uses three-dimensional graphics to allow you to interact with the RepRap machine, so you need a copy of Java3D to permit that to work. Click on that link and download the appropraite file for your machine; for Windows on a PC that file will be called java3d-1_4_0_01-windows-i586.zip. (not version 1.5.0 will not work) Then, install.
Now you can run the RepRap software. As you, not the superuser, open Eclipse, open the RepRap project, go to src -> org.reprap and right-mouse-click on Main.java. Select Run as -> Java application. This should open a window that looks like this:

it's so much simpiler in wondows all you have to do is install the stuff and jobs done really, apart from the updates.
Re: java errors?
May 22, 2007 11:41AM
AcidHell2 Wrote:

> Hey thanks that works, ...

Good!

> ... the windows install needs some work.

Yes. Are you reading the threads in the reprappers
forum here about software work to be done? If you
have the time and knowledge to create a Windows
installer using NSIS or similar, go for it!
[nsis.sourceforge.net]

> hhere's a start, It's only rough, I thought who
> ever wrote the original could re-write it to keep
> the same feel/flow.

Nice idea, but I think that was Adrian, and he's "the man"
on the project -- he's a busy guy! BTW you will find
much more needing fixing with the Windows instructions
as you continue down to getting SDCC working etc...
significant chunks of them are still a word for word copy
of the Linux instructions.

> it's so much simpiler in wondows all you have to
> do is install the stuff and jobs done really,
> apart from the updates.

Hmmm, isn't that true by definition for all platforms?
"All you have to do is install the software, and then
you will have the software installed"!? :-)

I'm not sure why you needed Mylar at all. And IMO the job
isn't really done until the software is talking to your
RepRap hardware, and you have programmed your PICs etc...
Anyway, for replicability, the primary OS platform is likely
to remain Linux/Ubuntu.

Jonathan
Anonymous User
Re: java errors?
May 22, 2007 12:01PM
needed mylar to update subclipse.

totaly, understand linux will be the choice and will probably be what I use, when I format, it's just the grub wont install in the right place as I've had multiple, vista and xp installs on 3 or 4 hard drives in one system.

going to create the pcb boards next week, got access to pcb etching kit.
Sorry, only registered users may post in this forum.

Click here to login