PDA

View Full Version : [ubuntu] Help with Java



erikja
May 5th, 2010, 07:23 PM
Hi.

I run an antenna measuring instrument on my Ubuntu 10.04.
It has just been set up, but I have issues, that I cannot
handle myself.


java -jar vnaJ.2.5.2.jar
INFO::Application version....2.5.2 2010-05-04
INFO::Java version...........1.5.0
INFO::Java runtime.version...1.5.0
INFO::Java vm.version........4.4.3
INFO::Java vm.vendor.........Free Software Foundation, Inc.
INFO::OS.....................i386 Linux 2.6.32-22-generic
INFO::Country/Language.......DK / en
INFO::Createing Config-Directory: /home/erik/vnaJ/config
INFO::Createing Calibration-Directory: /home/erik/vnaJ/calibration
WARNING: RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
Exception during event dispatch:
java.lang.NoClassDefFoundError: krause.vna.background.VnaBackgroundTask
at krause.vna.gui.calibrate.VNACalibrationDialog.doMe asure(VNACalibrationDialog.java:447)
at krause.vna.gui.calibrate.VNACalibrationDialog.doMe asureOpen(VNACalibrationDialog.java:461)
at krause.vna.gui.calibrate.VNACalibrationDialog.acce ss$3(VNACalibrationDialog.java:458)
at krause.vna.gui.calibrate.VNACalibrationDialog$10.a ctionPerformed(VNACalibrationDialog.java:276)
at javax.swing.AbstractButton.fireActionPerformed(lib gcj.so.10)
at javax.swing.AbstractButton$EventHandler.actionPerf ormed(libgcj.so.10)
at javax.swing.DefaultButtonModel.fireActionPerformed (libgcj.so.10)
at javax.swing.DefaultButtonModel.setPressed(libgcj.s o.10)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(libgcj.so.10)
at java.awt.Component.processMouseEvent(libgcj.so.10)
at java.awt.Component.processEvent(libgcj.so.10)
at java.awt.Container.processEvent(libgcj.so.10)
at java.awt.Component.dispatchEventImpl(libgcj.so.10)
at java.awt.Container.dispatchEventImpl(libgcj.so.10)
at java.awt.Component.dispatchEvent(libgcj.so.10)
at java.awt.LightweightDispatcher.redispatch(libgcj.s o.10)
at java.awt.LightweightDispatcher.handleMouseEvent(li bgcj.so.10)
at java.awt.LightweightDispatcher.dispatchEvent(libgc j.so.10)
at java.awt.Container.dispatchEventImpl(libgcj.so.10)
at java.awt.Window.dispatchEventImpl(libgcj.so.10)
at java.awt.Component.dispatchEvent(libgcj.so.10)
at java.awt.EventQueue.dispatchEvent(libgcj.so.10)
at java.awt.EventDispatchThread.run(libgcj.so.10)



What can I do to get it to run ok ?

VeeDubb
May 5th, 2010, 07:31 PM
What I would do, which I always do after a new install, is get rid of the semi-useless open-java garbage, and install proper java.

If you have all the extra repos available, Sun Java is available in the repos.

erikja
May 6th, 2010, 01:46 PM
What I would do, which I always do after a new install, is get rid of the semi-useless open-java garbage, and install proper java.

If you have all the extra repos available, Sun Java is available in the repos.

Thank you for your reply and suggestion.
Could you please give me a link to where I can download proper java, and also where I can see how to edit/add repos.

Thanks i advance

VeeDubb
May 6th, 2010, 08:00 PM
There's no need to download it manually.

Click the system menu, Administration, Software sources.

Check all of the check boxes on the first two tabs, then close the program.

When prompted, let it reload all the sources.


Click the system menu, Administration, Synaptic Package Manager

In the search box at the top of the window, type sun-java and you'll see the real sun java appear in the list. Install everyhting having to do with sun Java.

Everything is already there waiting for you.

erikja
May 6th, 2010, 08:21 PM
There's no need to download it manually.

Click the system menu, Administration, Software sources.

Check all of the check boxes on the first two tabs, then close the program.

When prompted, let it reload all the sources.


Click the system menu, Administration, Synaptic Package Manager

In the search box at the top of the window, type sun-java and you'll see the real sun java appear in the list. Install everyhting having to do with sun Java.

Everything is already there waiting for you.

Hi VeeDubb.

Thanks for your kind reply to me. I did what you suggested, and it all worked flawlessly :D

Now the set up for the measuring tool is working too, and happy I am.

):P