dslreports logo
shwasasin
join:2002-02-28
Newmarket, ON

shwasasin to jvalal

Member

to jvalal

Re: .class files

A .class file is a byte-code Java Applet. You'll need to use a Hex Editor as pdunham said, however it's all in binary so you probably won't be able to understand it. It's better to get the source code, modify it, then recompile it.

jvalal
Chonk
join:2002-06-14
Seattle, WA

jvalal

Member

Whoa...How do I do that?

If you notice the menu on the below referenced page I want to modify the code so that I can remove that Trial message that comes up when you first mouse over the menu...

»www.jasonvalalik.com/con ··· ight.htm

Any help with that?

hbreg
Premium Member
join:2000-11-09
Feasterville Trevose, PA

hbreg

Premium Member

Contact the person who wrote the applet and ask them for the .java file. Modify it, then re-compile it. Reading the .class file won't do you any good.

jvalal
Chonk
join:2002-06-14
Seattle, WA

jvalal

Member

They are selling the java file, but I don't want to pay for it. I am just using it for a personal site.

Thanks for the insight though..

J
akoso
Premium Member
join:2003-03-24
Guelph, ON

akoso to hbreg

Premium Member

to hbreg
You can also decompile the class. Comments obviously won't be included, but there are a number of Java decompilers out there that will return pretty accurate source code. JAD is one of the ones that I have used (for Unix).