• Quick note - the problem with Youtube videos not embedding on the forum appears to have been fixed, thanks to ZiprHead. If you do still see problems let me know.

Help with Java

Checkmite

Skepticifimisticalationist
Joined
Jun 7, 2002
Messages
29,007
Location
Gulf Coast
So I've downloaded a freeware java class which will put a neat scrolling text effect on my webpage. I've uploaded it and tested it with all the default options, and it works. The readme says that the options can be changed from the default settings - but to do that, I need to open the .class file and edit it. What program do I need to use to open the .class file?
 
Any text editor should do it.

Or if you want a nice Java IDE try eclipse . I use it for perl development too with the EPIC plugin.
 
heath said:
Any text editor should do it.

I've tried opening the class with notepad and wordpad; most of what comes up is gibberish. The parameters themselves are legible, but I can't see their setting values.

I will try your suggestion.
 
By gibberish do you mean java code or funky non-english characters? If it's the funky stuff you're looking at the compiled version. You'll need the source to edit the class directly and then use a JDK to rebuild it.

Post a link to where you got it from and I'll have a peek (or somebody else in another timezone might while I sleep :) )
 
Normally you edit (text) .java file(s) and run those through the java compiler, javac, to produce the binary .class file(s)
Any parameters the java applet needs - scroll speed etc. - would normally be passed as parameters by the host .html (text) file.
 
ceptimus said:
Normally you edit (text) .java file(s) and run those through the java compiler, javac, to produce the binary .class file(s)
Any parameters the java applet needs - scroll speed etc. - would normally be passed as parameters by the host .html (text) file.

So you're saying I would put the parameter changes in the html code on the page where I insert the class, instead of editing the class itself? That had occurred to me; in fact that's what I was going to try this evening.

Edited to add: And of course it worked; thanks ceptimus. I'll go stand in the corner and feel stupid now. :)
 

Back
Top Bottom