Java


Forum: myDSL Extensions (deprecated)
Topic: Java
started by: chickenman

Posted by chickenman on Aug. 24 2004,06:30
I am after a Java compiler and runtime for DSL, I would particually like to run "blue J" java because thats what my school uses so i'll know how to use it.

Any help is appreciated.

Posted by tecker on Aug. 25 2004,18:41
Hmm. It would not be to much problems. Get j2sdk-1_4_2-05 and bluej.jar

Package the DSL to target /opt and then add some entries and get them running. I will work on it tonight.

Check back here for updates.

Posted by roberts on Aug. 25 2004,21:48
We cannot distribute the java compiler or appletviewer.

You can always download your own copy but do not try to get these sort of things into the repository.

Watch the license requirements on the extensions that you make.

Posted by ripcrd6 on Aug. 26 2004,04:25
how about making it and sending directly to chickenman?
Posted by chickenman on Aug. 26 2004,07:47
I would be happy enough if I could just get it going through someone telling me what to do. I see that java.dsl would be absolutly huge and was a stupid idea. Tecker seems on the right track, but i am a total n00b to most of this, so i'll need more detail if someone wouldnt mind.
Posted by ripcrd6 on Aug. 26 2004,14:09
Isn't the java sdk about 30MB or more? Yeah it will be a pig.
Would it be possible to repackage Blackdown Java or some other?  not sure on the licensing or size, just throwing out a thought.
< http://jopa.studentenweb.org/debian/ >   is a repository for a blackdown for debian.  Not real up to date though.

Posted by roberts on Aug. 26 2004,17:50
Quote
how about making it and sending directly to chickenman?
I was just letting everyone know that we must be careful on what is in the repository. Members can "help each other out"  :D

Posted by tecker on Aug. 26 2004,21:45
Let me get this straight:

DSL doesn't have a Sh interp. so scripts wont work.
We can distribute the Bluej software.
We can distribute the scripts to get java sdk

Please clarifying this.

and i would never break the ditrobution liscences that i have read :;):

Posted by tecker on Aug. 26 2004,21:48
Also chickenman. Are you wanting the new 1.5 java and Bluej 2 (both in beta) or do you want the time tested 1.4.2 java and 1.3.5 bluej?

(others can chip in on this)

Posted by tecker on Aug. 26 2004,22:03
WOW! 100 MB of space needed for the SDK! OUCH!!!  Anybody know what i can delete to get that smaller?
Posted by cbagger01 on Aug. 27 2004,02:14
Delete java.

Problem solved :D

Posted by chickenman on Aug. 27 2004,12:22
yeh, sdk is a bitch

i want the "time tested" 4.2.(some number...) and the old blue j aswell, thats whats schools got, because i dont want to be showing up and going "aww dang, i cant do this", or (worse) "why the hell dosent anything i program dang well work around this joint..." and i dont much go for beta's anyway.

Having cleared that up, where abouts is the java SDK 2.4.(is it a 2?) download?, i have the windows version (thanks alot school...). But i cant find anythings vaugely correct looking on sun's site, admitidly I didnt really look extremely hard.

Also, i surely need to get a .dsl for something or other, so could somebody point me in the right direction?


Thanks for everyones help so far.

Posted by ripcrd6 on Aug. 30 2004,05:52
Do you know what the hell you are talking about?  Isn't Java standard on version 1.4.2 or something close to that.  Try to be clear on version numbers or you will cause a ton of confusion and more questions here.  My Windows box at work and home have Java j2re 1.4.2 and the .dsl file I downloaded is j2re1.4.2.tar.gz.

How about this.  Is there a java editor or SDK that you can use at a website?  Surely the great Java has a way to use this stuff over the net and save the stuff you put in an editor onto the local filesystem (floppy or USB) when done.

Posted by chickenman on Aug. 30 2004,07:45
sorry about the confusion, if any. I do mean 1.4.2

j2re1.4.2.dsl is just a java firefox plugin isnt it?
i hate to say it but i am not too sure what firefox is, is it a web-brouser of some sort?

anyway, a web-based java editor sounds good enough for me, if anybody knows one i would be very intrested to hear about it.

thanks

Posted by ripcrd6 on Aug. 30 2004,14:40
Firefox is indeed a web browser.  The j2re is the java runtime for the browser, but if you have a .jar on your PC, you should be able to run it with the j2re.  Just use the browser to start it.
Posted by roberts on Aug. 31 2004,00:08
The j2re1.4.2 is more than just the plugin. It is the runtime environment. So with...

export PATH="$PATH:/opt/j2re1.4.2/bin/"
export JAVA_HOME=/opt/j2re1.4.2

You are able to run java bytecode programs.

Posted by ripcrd6 on Sep. 03 2004,20:58
How about jEdit for your editor?  http://www.jedit.org/index.php  It's GPL software, so somebody could make a .dsl file out of it.  It has lots of plugins available, so you should figure out what are the most useful ones.  About 1.8MB for the editor.

Quote from site:
To install jEdit via Debian Linux apt-get, add the following lines to your /etc/apt/sources.list:

deb < http://dl.sourceforge.net/sourceforge/jedit > ./
deb-src < http://dl.sourceforge.net/sourceforge/jedit > ./

Then, just run apt-get update, followed by apt-get install jedit or apt-get source jedit.

< http://www.blackdown.org/ >
< ftp://ftp.tux.org/pub/java/JDK-1.4.2/i386/rc1/ >  to get it.  Looks like 32MB, maybe twice that.  Instructions here:
< ftp://ftp.tux.org/pub/java/JDK-1.4.2/i386/rc1/ >
And it looks like you must have GCC already on your box.  You would have some probs. getting all this in a .dsl I think.  Of course they were able to put OpenOffice in a .dsl, so maybe anything is possible.

Posted by tecker on Sep. 04 2004,21:57
Does Blackdown have the same restrictions as SUN java? I personaly would like to see a java compiler and Bluej (my online class uses that) that i could boot when the computers are acting up (happen sometimes, really annoying). If i can pull off the java sdk dsl  and IDE that would be good.

Um how do we make the new UCI packages? JDK-1.4.2-bdrc1.uci sounds real nice.

Posted by chickenman on Sep. 05 2004,02:18
Well jedit sounds good to me, I'll go and get it after the firefox java plugin stops downloading. I use DSL at home on a HDD install because of its small size and ease of use, so a .dsl is not critical for me. also, my dillo is screwing up and wouldnt log me in for some reason anyone know why?, using glinks now anyway so it dosent really matter...
Posted by tecker on Sep. 07 2004,00:55
the firefox java is just the plugin and JRE you will need an SDK for jedit. Just to let you know.

Also. I cant get bluej to run. it has something about a Lang.object thingy (OHH. thats techincal :laugh:) problem. any clue?

Posted by ripcrd6 on Sep. 07 2004,18:20
BlueJ is 1.8MB and requires 1.4.x Java SDK.  It comes as a .jar file, so it is written in Java.
< http://www.bluej.org/download/download.html >
The project page on Freshmeat.net states that it is fully redistributable.  you still need a method to get the full Java SDK, that seems to be the sticking point.  Goto < http://java.sun.com/j2se/1.4.2/download.html > and pick the J2SE v 1.4.2_05  SDK , then on the download screen, pick the j2sdk-1_4_2_05-linux-i586.bin file.  You should be able to save it to a directory you then drop on your DSL remaster along with the bluej-135.jar file.  From an xterm after booting your DSL remaster, or from emelfm, run the .bin file to install the SDK and then run "java -jar bluej-135.jar " per the instructions at the < http://www.bluej.org/download/install.html > site.
See if that works.  I think you will have to remaster yourself due to the Java license, but if you can do it, this should do it for you.

I'll test this method today and see if it works.  You will have a wait each time you start DSL when you run the two installers.  You will probably need a lot of ram too.

Posted by tecker on Sep. 08 2004,00:04
The SDK requires 100 + mb of ram to unzip. There may be a way to unzip it and add the folder to the cdrom before the remaster and have a bunch of symlinks point to the /cdrom folder with the J2sdk. If you had the same way installed then a bluej DSL/TAR.GZ would not be to difficult if you tracked the files installed by bluej. It is something i would like to succede at but am unable to due to time constraints now.
Posted by chickenman on Sep. 08 2004,09:24
ok, i got thoes 2 files, after some time, but i have no clue how to install java (ie run the .bin file). i figure i'd better have java before i go using bluej.

so when i try to use emelfm it says i need to choose a command to run it or something, and i get a similar error with rox. i dunno what remastering is or if i should have done anything, so, basically, i am stuck.

Posted by cbagger01 on Sep. 08 2004,12:01
For a *.bin file, you could try this from inside an xterminal:

chmod 755 name_of_file.bin
./name_of_file.bin

Posted by chickenman on Sep. 10 2004,08:22
thanks cbagger01, it did the trick, but now i dont know what to do, i cant run "java -jar bluej-135.jar " because i dont have a "java" command, so do i need to install j2sdk1.4.2.05 to somewhere specifically? (to make java a command?)

oh, and yes, i am a total n00b...(obviously)

Posted by chickenman on Sep. 10 2004,08:44
ok, i figured it out, i am a n00b allright...

copied the java files to /opt/ so thyre out of the way, dunno if thyre SUPPOSED to be there, dosent matter anyway...

so i chucked the bluej install into the bin folder and ran the command from in there. i was probably supposed to put it into dsl's bin folder tho right?, i dunno, it runs now anyway...

Posted by tecker on Sep. 11 2004,00:36
did you finaly get the SDK or are you using a Jre that came in a DSL? If you have that SDK, wow, that takes some memory.

Nice to see we got that working. I will try and see if i can create a from CD how to on the subject.

Posted by chickenman on Sep. 18 2004,01:31
Yeh, i got SDK, but i have a HDD install on a 2gb so its no big deal.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.