This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-01-19 19:07:14

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Java Compiler and Decompiling .jar

First, does anyone know a reputable, files-only java editor/compiler?
Secondly, do you need a certain program to decompile a .jar?
Thanks ahead of time.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#2 2012-01-19 19:46:20

GameHutSoftware
Scratcher
Registered: 2010-04-24
Posts: 1000+

Re: Java Compiler and Decompiling .jar

going to make a mod for minecraft?
cause id like to know also


Lurking more than posting, but still here.

Offline

 

#3 2012-01-19 19:50:05

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Java Compiler and Decompiling .jar

By files only, I assume you mean it doesn't require an installation? I'd recommend Eclipse.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2012-01-20 01:48:34

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Java Compiler and Decompiling .jar

to decompile a .jar i reccomend jd-gui but it's far easier to download the source


http://i.imgur.com/1QqnHxQ.png

Offline

 

#5 2012-01-20 07:10:26

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Java Compiler and Decompiling .jar

GameHutSoftware wrote:

going to make a mod for minecraft?
cause id like to know also

Nope.  A mod of the java player.

Thanks for the link, Harakou.

@TRocket: Scratch doesn't release the source code for its Java player.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#6 2012-01-20 07:58:47

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Java Compiler and Decompiling .jar

Okay, so with Eclipse, I put a copy of the JRE in the folder, and it still won't run.
It's saying it can't load a certain application extension in the client folder.

Last edited by SJRCS_011 (2012-01-20 07:59:22)


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#7 2012-01-20 09:42:14

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Java Compiler and Decompiling .jar

SJRCS_011 wrote:

First, does anyone know a reputable, files-only java editor/compiler?
Secondly, do you need a certain program to decompile a .jar?
Thanks ahead of time.

Code:

WinRAR or 7-zip, ive heard.

Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#8 2012-01-20 10:52:13

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Java Compiler and Decompiling .jar

SJRCS_011 wrote:

Nope.  A mod of the java player.

I have made much things with the Java player...
I know the player really good  smile


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#9 2012-01-20 11:21:08

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Java Compiler and Decompiling .jar

ZeroLuck wrote:

SJRCS_011 wrote:

Nope.  A mod of the java player.

I have made much things with the Java player...
I know the player really good  smile

i kept getting runtime errors in eclipse


http://i.imgur.com/1QqnHxQ.png

Offline

 

#10 2012-01-20 11:38:38

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Java Compiler and Decompiling .jar

TRocket wrote:

i kept getting runtime errors in eclipse

The decompilers don't work on the ScratchApplet.jar!
You can't copy just the code...


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#11 2012-01-20 11:39:11

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Java Compiler and Decompiling .jar

ZeroLuck wrote:

TRocket wrote:

i kept getting runtime errors in eclipse

The decompilers don't work on the ScratchApplet.jar!
You can't copy just the code...

how did you do it then?


http://i.imgur.com/1QqnHxQ.png

Offline

 

#12 2012-01-20 11:56:06

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Java Compiler and Decompiling .jar

TRocket wrote:

how did you do it then?

There are other ways...
Do you know 'reflection'?


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#13 2012-01-20 12:02:36

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Java Compiler and Decompiling .jar

ZeroLuck wrote:

TRocket wrote:

how did you do it then?

There are other ways...
Do you know 'reflection'?

a bit...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#14 2012-07-30 22:09:04

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Java Compiler and Decompiling .jar

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer