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

#1 2012-08-09 16:25:03

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

java question

how do you run a java project off of a icon on the destop instead of through a compiler


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#2 2012-08-09 16:38:01

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: java question

bump


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#3 2012-08-09 16:43:14

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

Re: java question

you'd have to compile the .java files into .class files, then into a .jar
Then just double-click the jar and it'll run


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

Offline

 

#4 2012-08-09 16:55:44

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: java question

SJRCS_011 wrote:

you'd have to compile the .java files into .class files, then into a .jar
Then just double-click the jar and it'll run

how???


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#5 2012-08-09 17:01:05

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: java question

slayerrobe7 wrote:

SJRCS_011 wrote:

you'd have to compile the .java files into .class files, then into a .jar
Then just double-click the jar and it'll run

how???

Don't all Java compilers have that ability?  hmm


http://i50.tinypic.com/312u714.jpg

Offline

 

#6 2012-08-09 17:04:23

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

Re: java question

Are you using an IDE, like Netbeans or Eclipse?


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

 

#7 2012-08-09 17:05:49

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: java question

BirdByte wrote:

slayerrobe7 wrote:

SJRCS_011 wrote:

you'd have to compile the .java files into .class files, then into a .jar
Then just double-click the jar and it'll run

how???

Don't all Java compilers have that ability?  hmm

umm on NetBeans it wont let me compile the button is not clickable (i assume is has already been compiled) so now what do i do


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#8 2012-08-09 17:21:43

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: java question

nickbrickmaster wrote:

Are you using an IDE, like Netbeans or Eclipse?

Netbeans


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#9 2012-08-09 22:11:23

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: java question

Shouldn't just clicking "Build Project" do the job? This creates a .jar in the /dist directory of your project, in your Documents folder.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

Board footer