Skip to main content



      Home
Home » Newcomers » Newcomers » Approach to Debugging old Java web applet
Approach to Debugging old Java web applet [message #1221499] Tue, 17 December 2013 15:54 Go to next message
Eclipse UserFriend
I'm tasked with re-creating a tutorial:
(ht.p)://www.olympusmicro.com/primer/java/lasers/electroncycle/index.html

I must create a javascript version that runs with the aid of HTML and CSS.

I need to debug some old Java files and understand how variables are manipulated.

The main file I'm converting to javascript is electrons.java, and it uses the content of Electron.java, Wave.java, and others.

I downloaded Eclipse 32bit for Windows 7, because though I'm running a 64 bit OS, the 64bit Eclipse version didn't run on my system.

My question: I would like to compile this java web applet using Eclipse, and more so study how certain variables are changing in the electrons.java, Electron.java, and Wave.java files.

The zip with all files is attached to this post.

I am nearly finished with the conversion, but they're slight differences in my version that I can't understand without debugging the original java src files.

Thanks for any direction you're able to give. I work at the biggest Magnet lab in the world and we have over 300 of these tutorials to convert from java to javascript, so your guidance is greatly appreciated.


[Updated on: Tue, 17 December 2013 16:48] by Moderator

Re: Approach to Debugging old Java web applet [message #1221501 is a reply to message #1221499] Tue, 17 December 2013 15:56 Go to previous messageGo to next message
Eclipse UserFriend
I just figured out how to create my project and import a .zip file, I tried running(compiling) with (green arrow) but I have errors:

Warning: Can't read AppletViewer properties file: C:\Users\intern\.hotjava\properties Using defaults.
load: class .class not found.
java.lang.ClassNotFoundException: .class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

[Updated on: Tue, 17 December 2013 16:00] by Moderator

Re: Approach to Debugging old Java web applet [message #1221505 is a reply to message #1221501] Tue, 17 December 2013 16:10 Go to previous messageGo to next message
Eclipse UserFriend
when I tried creating my Java Project with "Use project folder as root for sources and class files" I had a (red x) appear on my electrons.java file, I then imported the zip archive into a new Java Project with the other option "Create separate.. " clicked, and no (red x)'s on my files now.. however when I compile(run) with (green arrow) I get exact same errors
Re: Approach to Debugging old Java web applet [message #1221512 is a reply to message #1221505] Tue, 17 December 2013 16:34 Go to previous messageGo to next message
Eclipse UserFriend
According to the first response here:
(h..p)://stackoverflow.com/questions/122160/is-there-an-easy-way-to-attach-source-in-eclipse

I can go in and edit the "Java Build Path" etc., At this point I'm not sure how to edit this path to fix my current errors.

Also looking at this Class: (h..p)://docs.oracle.com/javase/7/docs/api/java/lang/ClassNotFoundException.html
Re: Approach to Debugging old Java web applet [message #1221514 is a reply to message #1221512] Tue, 17 December 2013 16:40 Go to previous messageGo to next message
Eclipse UserFriend
Also, I have a Window opening when I compile(run) and click (green arrow), the window is titled, "Applet Viewer: .class" and at the bottom of the window it says "Start: applet not initialized"
Re: Approach to Debugging old Java web applet [message #1221518 is a reply to message #1221514] Tue, 17 December 2013 16:55 Go to previous messageGo to next message
Eclipse UserFriend
I'm using Eclipse IDE for Java Developers
Re: Approach to Debugging old Java web applet [message #1221657 is a reply to message #1221518] Wed, 18 December 2013 02:10 Go to previous message
Eclipse UserFriend
On 12/17/2013 02:55 PM, Jonathan James wrote:
> I'm using Eclipse IDE for Java Developers

I wish you good luck here. The majority of Java developers do not
remember the era of applets. Some may not even know what they were. I
was a C/assembly programmer in that day and have never written one.
Previous Topic:Problem with scrollbars
Next Topic:Variable description in Debug view
Goto Forum:
  


Current Time: Sat Jun 14 01:45:43 EDT 2025

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

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

Back to the top