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

#1 2012-07-07 23:33:26

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

Scratch Java Compiler.

I wish to create an IDE for java based on scratch it will be written in java. it will have all the windows of scratch except the stage in the place of the stage will be a results window. every block we have will have a Java Line it compiles to.

if you wish to help please tell me in the comments.


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

Offline

 

#2 2012-07-08 01:42:49

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

Re: Scratch Java Compiler.

I can't even imagine sorting through a list of blocks containing every single method in the Java API. O_O


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

 

#3 2012-07-08 01:46:00

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Scratch Java Compiler.

Maybe you could just use ToJar?


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#4 2012-07-08 08:35:03

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Scratch Java Compiler.

jji7skyline wrote:

Maybe you could just use ToJar?

He wants to make a Java IDE, not compile a Scratch project to .jar file.  tongue


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#5 2012-07-08 10:48:47

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Scratch Java Compiler.

Nice!


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#6 2012-07-08 14:12:02

MountainBoy
Scratcher
Registered: 2010-07-25
Posts: 34

Re: Scratch Java Compiler.

I'm  beginning java but I can maybe help, I have a simple java window calculator and other apps that work for other operations. So if your looking for a sample results code, here is mine: (in a clas/.java file titled "GUI"(.java)
import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class GUI extends JFrame{

    private JLabel item1;

    public GUI(){
        super("Results");
        setLayout(new FlowLayout());

        item1 = new JLabel("Texttexttexttexttexttext");
        item1.setToolTipText("No Really!");
        add(item1);
    }
}



---------------------and in another .java file titled "GUIr"(.java)---------------------------------
import javax.swing.JFrame;

class apples{
    public static void main(String[] args) {

        GUI bucky = new GUI();
        bucky.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        bucky.setSize(800,800);
        bucky.setVisible(true);
    }
}

















Hope that helped  smile

Offline

 

#7 2012-07-08 14:13:36

MountainBoy
Scratcher
Registered: 2010-07-25
Posts: 34

Re: Scratch Java Compiler.

I meant  .class  tongue

Offline

 

#8 2012-07-08 14:15:31

MountainBoy
Scratcher
Registered: 2010-07-25
Posts: 34

Re: Scratch Java Compiler.

And ignore the random green thing! + to test it, after compiling it, run the GUIr!

Offline

 

#9 2012-07-08 14:28:42

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

Re: Scratch Java Compiler.

hi, Zeroluck and i are making something very similar at Jblocks i'll ask him to look at this thread

Last edited by TRocket (2012-07-08 14:28:56)


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

Offline

 

#10 2012-07-08 14:42:19

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

Re: Scratch Java Compiler.

TRocket wrote:

hi, Zeroluck and i are making something very similar at Jblocks i'll ask him to look at this thread

that is cool do you guys want to help me


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

Offline

 

#11 2012-07-09 09:16:48

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

Re: Scratch Java Compiler.

slayerrobe7 wrote:

that is cool do you guys want to help me

No. We have worked on JBlocks many month now and the project has gotten really advanced so we don't want to rewrite over 25.000 lines of code... I hope you understand me/us. You have to know that programming a block editor (like in Scratch) is very hard, especially moving a block over the whole GUI was hard to implement for me. But you may join our team if you are good enough.


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

Offline

 

#12 2012-07-09 10:31:13

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Scratch Java Compiler.

Harakou wrote:

I can't even imagine sorting through a list of blocks containing every single method in the Java API. O_O

Ikr?


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#13 2012-07-09 11:47:25

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: Scratch Java Compiler.

MathWizz wrote:

Harakou wrote:

I can't even imagine sorting through a list of blocks containing every single method in the Java API. O_O

Ikr?

It would be impossible to scroll because the scroll bar would be 1 pixel. XD


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#14 2012-07-10 23:44:13

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

Re: Scratch Java Compiler.

poopo wrote:

MathWizz wrote:

Harakou wrote:

I can't even imagine sorting through a list of blocks containing every single method in the Java API. O_O

Ikr?

It would be impossible to scroll because the scroll bar would be 1 pixel. XD

hmm not quite i was going to replace scratch blocks with java code and then just add some need blocks such as import blocks


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

Offline

 

#15 2012-07-10 23:46:19

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Scratch Java Compiler.

poopo wrote:

MathWizz wrote:

Harakou wrote:

I can't even imagine sorting through a list of blocks containing every single method in the Java API. O_O

Ikr?

It would be impossible to scroll because the scroll bar would be 1 pixel. XD

Why not have a search bar or filters?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#16 2012-07-11 01:37:53

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

Re: Scratch Java Compiler.

slayerrobe7 wrote:

poopo wrote:

MathWizz wrote:


Ikr?

It would be impossible to scroll because the scroll bar would be 1 pixel. XD

hmm not quite i was going to replace scratch blocks with java code and then just add some need blocks such as import blocks

Hmm... that would require quite a lot of already pre-built Java code for the graphics/sprite aspect.


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

 

#17 2012-07-12 01:14:06

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

Re: Scratch Java Compiler.

ZeroLuck wrote:

slayerrobe7 wrote:

that is cool do you guys want to help me

No. We have worked on JBlocks many month now and the project has gotten really advanced so we don't want to rewrite over 25.000 lines of code... I hope you understand me/us. You have to know that programming a block editor (like in Scratch) is very hard, especially moving a block over the whole GUI was hard to implement for me. But you may join our team if you are good enough.

alright if you could give me a link to your dev thread i will take a look


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

Offline

 

#18 2012-07-12 02:16:24

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

Re: Scratch Java Compiler.

slayerrobe7 wrote:

ZeroLuck wrote:

slayerrobe7 wrote:

that is cool do you guys want to help me

No. We have worked on JBlocks many month now and the project has gotten really advanced so we don't want to rewrite over 25.000 lines of code... I hope you understand me/us. You have to know that programming a block editor (like in Scratch) is very hard, especially moving a block over the whole GUI was hard to implement for me. But you may join our team if you are good enough.

alright if you could give me a link to your dev thread i will take a look

Because there's only two of us we don't have a dev thread so we use email instead.


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

Offline

 

#19 2012-08-09 13:54:03

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

Re: Scratch Java Compiler.

TRocket wrote:

slayerrobe7 wrote:

ZeroLuck wrote:


No. We have worked on JBlocks many month now and the project has gotten really advanced so we don't want to rewrite over 25.000 lines of code... I hope you understand me/us. You have to know that programming a block editor (like in Scratch) is very hard, especially moving a block over the whole GUI was hard to implement for me. But you may join our team if you are good enough.

alright if you could give me a link to your dev thread i will take a look

Because there's only two of us we don't have a dev thread so we use email instead.

okay my false email that i can use here is jimmyboy798@gmail.com


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

Offline

 

#20 2012-08-09 16:08:22

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

Re: Scratch Java Compiler.

Harakou wrote:

I can't even imagine sorting through a list of blocks containing every single method in the Java API. O_O

I can. The problem is writing said list.  tongue

You should look a little into how the web Java player works, that might help. I honestly have no idea whether a project is immediately compiled to Java code, or the player itself interprets the .sb directly.


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

Offline

 

Board footer