This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Technology & Calculator Open Topic subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Computer Tech Support => Technology & Calculator Open Topic
Author Message
bananaman
Indestructible


Calc Guru


Joined: 12 Sep 2005
Posts: 1124

Posted: 20 Mar 2007 03:10:47 pm    Post subject:

I was wondering if it is possible to view the source code for an online java applet. If I could do that it would make it a piece of cake to rewrite games online for other platforms. And it would also help improve my Java abilities.
Back to top
c_plus_plus
My Face Hertz


Active Member


Joined: 30 Jan 2006
Posts: 575

Posted: 20 Mar 2007 03:30:54 pm    Post subject:

you actually CAN get the source by finding a Java decompiler just Google for one. You can get the class file using the method burr described. After decompiling the first one you may find that you will need to find more class files, which should also be on the website with the applet.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 20 Mar 2007 03:41:22 pm    Post subject:

Or learn to read java bytecode.
Back to top
elfprince13
Retired


Super Elite (Last Title)


Joined: 11 Apr 2005
Posts: 3500

Posted: 20 Mar 2007 04:27:05 pm    Post subject:

Arcane Wizard wrote:
Or learn to read java bytecode.
[post="99233"]<{POST_SNAPBACK}>[/post]



......

or use Mocha....
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 20 Mar 2007 04:49:40 pm    Post subject:

Mocha was already mentioned.
Back to top
frenchcalc1
جان ألعريم


Active Member


Joined: 14 Mar 2007
Posts: 648

Posted: 20 Mar 2007 05:49:53 pm    Post subject:

Arcane Wizard wrote:
Mocha was already mentioned.
[post="99235"]<{POST_SNAPBACK}>[/post]

I think he was just emphasizing the easier solution Wink
Back to top
benryves


Active Member


Joined: 23 Feb 2006
Posts: 564

Posted: 21 Mar 2007 06:08:57 am    Post subject:

Bear in mind that an obfuscator can be used to optimise the size of the final binary (though I guess this is more common in the J2ME world, where size is more important) which will amongst other things remove meaningful names from variables/classes.

Learning from source is seldom a great idea, especially when the comments have been removed.


Last edited by Guest on 21 Mar 2007 06:10:25 am; edited 1 time in total
Back to top
elfprince13
Retired


Super Elite (Last Title)


Joined: 11 Apr 2005
Posts: 3500

Posted: 21 Mar 2007 08:44:42 am    Post subject:

Arcane Wizard wrote:
Mocha was already mentioned.
[post="99235"]<{POST_SNAPBACK}>[/post]


people tend to miss things like that especially when followed by unhelpful comments such as yours. and mocha really is the best solution for free decompilations.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 21 Mar 2007 09:07:11 am    Post subject:

Yeah its not like the internal workings matter when developing for multiple platforms.

E-mail and ask for the source code, anything else is copyright violation anyway.


Last edited by Guest on 21 Mar 2007 09:07:52 am; edited 1 time in total
Back to top
JoeImp
Enlightened


Active Member


Joined: 24 May 2003
Posts: 747

Posted: 21 Mar 2007 05:26:12 pm    Post subject:

Eh, I had another paragraph above this, but then I got his meaning, so I deleted it. I'll leave the rest though, just showing a few decompilers.

Quote:
mocha really is the best solution for free decompilations


From the mocha readme:

Quote:
Add the full pathname of "mocha.zip" to your CLASSPATH string, for instance:

    SET CLASSPATH=c:\myclasses;c:\jdk\mocha.zip

3. INVOCATION

Mocha is invoked from the commandline (i.e. DOS box, if you're using Win95) like this:

    java mocha.Decompiler [-v] [-o] Class1.class Class2.class ...


That's pretty freaking ghetto for the "best decompiler" out there. Cavaj or DJ Java work a lot better.

Here's DJ Java: http://www.rit.edu/~jci7794/real_vs_decompiled.jpg
Here's CavaJ: http://www.rit.edu/~jci7794/real2_vs_decompiled.jpg

Cavaj even shows variable declarations, even better decompilation than DJ Java.


Last edited by Guest on 21 Mar 2007 05:38:31 pm; edited 1 time in total
Back to top
bananaman
Indestructible


Calc Guru


Joined: 12 Sep 2005
Posts: 1124

Posted: 22 Mar 2007 07:55:40 am    Post subject:

Ok, thanks for all your information. I have a mac, so I'm not sure if those decompilers will work, but I can always google for a mac compatable one, (They have to be out there). I mainly want the source to see how they stored the data for an isometric tilemap where things depend upon the sides and centers of the hexes. I am posting this from school and will try some things when I get home, which won't be till a couple of days.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement