Poster | Thread |
jaokim
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 13:23:02
| | [ #21 ] |
|
|
|
Regular Member |
Joined: 8-Mar-2003 Posts: 278
From: Sweden | | |
|
| Quote:
TheAMIgaOne wrote: @jaokim
I havnt tried it yet, but does it come with Javac as I think the previous distributions didnt.
I'd gladly test out the functionality with custom java classes. thus also find the errors. Ive been working on C since my university and recently realized how much I miss Java and OO programming. |
You can choose to install "jikes" as a compiler. It isn't a very recent version, so no fancy stuff with generics can be compiled. But it works. I will look into the compiler part as well, but you can of course use a compiler on another platform, just make sure the classes are compiled for Java 1.5.
In the Twitter archive the minimal source I wrote is included, and it should compile with jikes._________________
|
|
Status: Offline |
|
|
jaokim
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 13:25:32
| | [ #22 ] |
|
|
|
Regular Member |
Joined: 8-Mar-2003 Posts: 278
From: Sweden | | |
|
| Quote:
whose wrote: @jaokim
Nice!
Although I dont like Java, you did a great work making it do things at least. |
What is it you don't like about Java? _________________
|
|
Status: Offline |
|
|
TheAMIgaOne
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 14:50:47
| | [ #23 ] |
|
|
|
Cult Member |
Joined: 10-Jan-2004 Posts: 776
From: United Kingdom | | |
|
| @jaokim
I love the people who dont like Java but like .NET, definitely some screws loose lol Last edited by TheAMIgaOne on 26-Jul-2013 at 02:52 PM.
_________________ Cross-developer on Windows, OS3, OS4, Linux; Current Projects:- Nephele Cloud App OS4 UserProfile System OS4 AmigaOneXE OS4.1.6
TaoSoftwareBlog Youtube |
|
Status: Offline |
|
|
Amigo1
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 17:38:33
| | [ #24 ] |
|
|
|
Super Member |
Joined: 24-Jun-2004 Posts: 1582
From: the Clouds | | |
|
| congrats! Last edited by Amigo1 on 26-Jul-2013 at 05:43 PM.
|
|
Status: Offline |
|
|
TheAMIgaOne
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 17:45:29
| | [ #25 ] |
|
|
|
Cult Member |
Joined: 10-Jan-2004 Posts: 776
From: United Kingdom | | |
|
| @Amigo1
Or another literal sence, and catch crabs lol
@Joekim
Just tried to run individual classes and all I get is the ClassLoader not bein able to find the class
Ive used the command line similar to java(sun vm) as
work:jamvm -classpath . HelloWorld
all i get is a common ClassLoader error not found in java.lang.ClassLoader$l{url[file:Work:/.],parent=null}
The Jar package for Twitter client works fines. Is there some other command argument I'm ment to be using _________________ Cross-developer on Windows, OS3, OS4, Linux; Current Projects:- Nephele Cloud App OS4 UserProfile System OS4 AmigaOneXE OS4.1.6
TaoSoftwareBlog Youtube |
|
Status: Offline |
|
|
jaokim
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 18:09:59
| | [ #26 ] |
|
|
|
Regular Member |
Joined: 8-Mar-2003 Posts: 278
From: Sweden | | |
|
| Quote:
Just tried to run individual classes and all I get is the ClassLoader not bein able to find the class
Ive used the command line similar to java(sun vm) as
work:jamvm -classpath . HelloWorld
all i get is a common ClassLoader error not found in java.lang.ClassLoader$l{url[file:Work:/.],parent=null}
The Jar package for Twitter client works fines. Is there some other command argument I'm ment to be using |
Oh. Hm.
The things below is edited compared to my initial post!
1. The "." kind of doesn't work for Amiga, I've noticed. Try with: Work:jamvm -classpath Work:, HelloWorld
Given that HelloWorld.class exists in Work:
2. I've missed to set the ENV CLASSPATH in my install script. Have to think what it should be. Perhaps my BOOTCLASSPATH is wrong as well. But, you could set it like "setenv SAVE CLASSPATH Work:,"
3. To separate classpath paths, in JAmiga use comma and not colon.
Below are things I might be interested in for error searching, if the above doesn't work: Quote:
getenv BOOTCLASSPATH getenv LD_LIBRARY_PATH dir JAmiga:
|
Oh, and if you have a serial connection or sashimi, that might help as well. JAmiga outputs some stuff there.
But, yes, there are some issues with my current release. I will produce a proper release soonish.Last edited by jaokim on 26-Jul-2013 at 06:31 PM. Last edited by jaokim on 26-Jul-2013 at 06:24 PM. Last edited by jaokim on 26-Jul-2013 at 06:23 PM.
_________________
|
|
Status: Offline |
|
|
TheAMIgaOne
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 18:36:03
| | [ #27 ] |
|
|
|
Cult Member |
Joined: 10-Jan-2004 Posts: 776
From: United Kingdom | | |
|
| @jaokim
I know the -classpath is false of habit :) tried loadsa combinations
The LD_LIBRARY_PATH and BOOTCLASSPATH point to the right Jamiga paths. and JAmiga is assigned
Just backinstalled Java1.5 on Windows and compiled the basic HelloWorld onto my network share, and again the Amiga Jamvm cant find the class
Both Win(Javac) and Amiga(Jikes) produce a 430byte HelloWorld.class and are able to run via Win(javac)
just tried again with Sashimi and it seems the java_io_VMFile.c isDir cant lock either '.' or 'devshare:java/win/.' and yes there is a reference to "Filer:" that it fails on, striaght after those it throws the cant open class exception _________________ Cross-developer on Windows, OS3, OS4, Linux; Current Projects:- Nephele Cloud App OS4 UserProfile System OS4 AmigaOneXE OS4.1.6
TaoSoftwareBlog Youtube |
|
Status: Offline |
|
|
jaokim
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 18:45:39
| | [ #28 ] |
|
|
|
Regular Member |
Joined: 8-Mar-2003 Posts: 278
From: Sweden | | |
|
| @TheAMIgaOne
Sorry, I updated my answer while you tried, it seems.
Try setting the classpath explicitly, and not with the dot: Work:jamvm -classpath Work:, HelloWorld
_________________
|
|
Status: Offline |
|
|
TheAMIgaOne
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 18:50:49
| | [ #29 ] |
|
|
|
Cult Member |
Joined: 10-Jan-2004 Posts: 776
From: United Kingdom | | |
|
| @jaokim
Success, just run it from my share and included the share as the -classpath
Thanks will play further :)
_________________ Cross-developer on Windows, OS3, OS4, Linux; Current Projects:- Nephele Cloud App OS4 UserProfile System OS4 AmigaOneXE OS4.1.6
TaoSoftwareBlog Youtube |
|
Status: Offline |
|
|
Spirantho
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 18:55:58
| | [ #30 ] |
|
|
|
Super Member |
Joined: 4-Jun-2004 Posts: 1044
From: Aberystwyth, Wales | | |
|
| I didn't have much luck running from the command line (couldn't find class), but running JAmigaTwitter from the Workbench brings up the usage window!
Awesome work - now my Amiga 4000 has Java!
(Yes, I'm running it on 4.1u6 on my A4000) |
|
Status: Offline |
|
|
asymetrix
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 20:43:43
| | [ #31 ] |
|
|
|
Cult Member |
Joined: 9-Mar-2003 Posts: 868
From: United Kingdom | | |
|
| @jaokim
Good work as always. hmmm I wonder if we can get this small app working with Jamiga ?
https://github.com/abhirama/smushit
It auto smushes using Yahoos image compression via commandline.
Its very usefull, if we could have Amiga api/ java library use it.
create a folder called smush usage:
java -jar smushit.jar -imageDir=smush -verbose=true -dryRun=false -imgExtensions=gif,png,jpeg
_________________ Download 499.26 Mbps, 659.94 Mbps Upload :) |
|
Status: Offline |
|
|
jaokim
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 22:21:20
| | [ #32 ] |
|
|
|
Regular Member |
Joined: 8-Mar-2003 Posts: 278
From: Sweden | | |
|
| Quote:
create a folder called smush usage:
java -jar smushit.jar -imageDir=smush -verbose=true -dryRun=false -imgExtensions=gif,png,jpeg
|
Cool! Just tried, it starts at least. And it seems to do stuff. But it's very slow, since I log for every byte (yes, byte!) written to files. After its done writing, it however throws an exception claiming to not be connected.
But this is exactly the kind of stuff that will work with the current release! I will look into this further... Thanks for the tip!_________________
|
|
Status: Offline |
|
|
Chris_Y
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 23:33:57
| | [ #33 ] |
|
|
|
Elite Member |
Joined: 21-Jun-2003 Posts: 3203
From: Beds, UK | | |
|
| @jaokim
How about this: http://www.jasypt.org/cli.html
I can't get it to work, but I suspect I've got the syntax wrong.
Quote:
7.RAM Disk:jasypt-1.9.0> jamvm -classpath ram:jasypt-1.9.0/lib org.jasypt.intf.cli.JasyptStringDigestCLI Exception in thread "main" java.lang.NoClassDefFoundError: org/jasypt/intf/cli/JasyptStringDigestCLI Caused by: java.lang.ClassNotFoundException: org.jasypt.intf.cli.JasyptStringDigestCLI not found in java.lang.ClassLoader$1{urls=[file:ram:jasypt-1.9.0/lib/], parent=null} at java.net.URLClassLoader.findClass(URLClassLoader.java:531) at java.lang.ClassLoader.loadClass(ClassLoader.java:341) at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112) at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
|
(not sure how useful it is either, I just found it and thought it might work!)
_________________ "Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion Avatar is Tabitha by Eric W Schwartz |
|
Status: Offline |
|
|
jaokim
| |
Re: JAmiga beta-release Posted on 26-Jul-2013 23:46:05
| | [ #34 ] |
|
|
|
Regular Member |
Joined: 8-Mar-2003 Posts: 278
From: Sweden | | |
|
| Quote:
Chris_Y wrote: @jaokim
How about this: http://www.jasypt.org/cli.html
I can't get it to work, but I suspect I've got the syntax wrong.
Quote:
7.RAM Disk:jasypt-1.9.0> jamvm -classpath ram:jasypt-1.9.0/lib org.jasypt.intf.cli.JasyptStringDigestCLI Exception in thread "main" java.lang.NoClassDefFoundError: org/jasypt/intf/cli/JasyptStringDigestCLI Caused by: java.lang.ClassNotFoundException: org.jasypt.intf.cli.JasyptStringDigestCLI not found in java.lang.ClassLoader$1{urls=[file:ram:jasypt-1.9.0/lib/], parent=null} at java.net.URLClassLoader.findClass(URLClassLoader.java:531) at java.lang.ClassLoader.loadClass(ClassLoader.java:341) at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112) at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
|
(not sure how useful it is either, I just found it and thought it might work!)
|
Try adding -jar and point to the jarfile, something like: Quote:
jamvm -classpath ram:jasypt-1.9.0/lib -jar ram:jasypt.jar org.jasypt.intf.cli.JasyptStringDigestCLI |
_________________
|
|
Status: Offline |
|
|
Chris_Y
| |
Re: JAmiga beta-release Posted on 27-Jul-2013 10:39:01
| | [ #35 ] |
|
|
|
Elite Member |
Joined: 21-Jun-2003 Posts: 3203
From: Beds, UK | | |
|
| @jaokim
That just gives me this:
Quote:
7.AmigaOS:> jamvm -classpath ram:jasypt-1.9.0/lib -jar ram:jasypt-1.9.0/lib/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptStringDigestCLI Couldn't find Main-Class attribute in ram:jasypt-1.9.0/lib/jasypt-1.9.0.jar Manifest.
|
Looks like it is ignoring the function I've asked it to call?
_________________ "Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion Avatar is Tabitha by Eric W Schwartz |
|
Status: Offline |
|
|
Amiboy
| |
Re: JAmiga beta-release Posted on 27-Jul-2013 11:17:41
| | [ #36 ] |
|
|
|
Super Member |
Joined: 21-Dec-2003 Posts: 1056
From: At home (probably) | | |
|
| @jaokim
Sorry, just felt like having a smiley day.
Downloaded, will check it out. _________________ Live Long and keep Amigaing!
A1200, Power Tower, TF1260 128MB RAM, 68060 Rev 6, OS3.9 BB2, HD-Floppy, Mediator TX+ PCI, Voodoo 3 3000, Soundblaster 4.1, TV Card, Spider USB, 100MBit Ethernet, 16GB CF HD, 52xCDRom. |
|
Status: Offline |
|
|
TheAMIgaOne
| |
Re: JAmiga beta-release Posted on 27-Jul-2013 15:12:52
| | [ #37 ] |
|
|
|
Cult Member |
Joined: 10-Jan-2004 Posts: 776
From: United Kingdom | | |
|
| @jaokim
Will be great when you get Swing/AWT working with Intuition, of course thats at your milestone 1.5(AWT). Good work
Tried JAMarquee the Java implimentation of the AmigaMarquee client library, it seems to do what is expected, although no working server to run with, need to bring out my WinUAE and test it. Last edited by TheAMIgaOne on 27-Jul-2013 at 03:15 PM.
_________________ Cross-developer on Windows, OS3, OS4, Linux; Current Projects:- Nephele Cloud App OS4 UserProfile System OS4 AmigaOneXE OS4.1.6
TaoSoftwareBlog Youtube |
|
Status: Offline |
|
|
jaokim
| |
Re: JAmiga beta-release Posted on 28-Jul-2013 10:32:56
| | [ #38 ] |
|
|
|
Regular Member |
Joined: 8-Mar-2003 Posts: 278
From: Sweden | | |
|
| Quote:
Chris_Y wrote: @jaokim
That just gives me this:
Quote:
7.AmigaOS:> jamvm -classpath ram:jasypt-1.9.0/lib -jar ram:jasypt-1.9.0/lib/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptStringDigestCLI Couldn't find Main-Class attribute in ram:jasypt-1.9.0/lib/jasypt-1.9.0.jar Manifest.
|
Looks like it is ignoring the function I've asked it to call?
|
Yes, indeed. When using a jar file it expects the jar file to have a manifest file stating which class should be run. Apparently it ignores any class defined in the commandline.
Something like this might work:
jamvm -classpath ram:jasypt-1.9.0/lib,ram:jasypt-1.9.0/lib/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptStringDigestCLI
Given that the jasypt jar is in the lib directory? There seems to be an issue with jar files in the current dir, but explicitly giving them in the classpath argument should work.
_________________
|
|
Status: Offline |
|
|
whose
| |
Re: JAmiga beta-release Posted on 28-Jul-2013 11:03:47
| | [ #39 ] |
|
|
|
Cult Member |
Joined: 21-Jun-2005 Posts: 893
From: Germany | | |
|
| @jaokim
Its a matter of taste... I dont like languages that educate people to develop uber-abstract code that is quite difficult to maintain.
Nonetheless, there is some code that might be useful for Amigans some day, hence my thumbs up for your effort (and success) |
|
Status: Offline |
|
|
Chris_Y
| |
Re: JAmiga beta-release Posted on 28-Jul-2013 11:37:04
| | [ #40 ] |
|
|
|
Elite Member |
Joined: 21-Jun-2003 Posts: 3203
From: Beds, UK | | |
|
| @jaokim
Oh yes!
Quote:
10.AmigaOS:> jamvm -classpath ram:jasypt-1.9.0/lib,ram:jasypt-1.9.0/lib/jasypt-1.9.0.jar,ram:jasypt-1.9.0/lib/icu4j-3.4.4.jar org.jasypt.intf.cli.JasyptStringDigestCLI "input=JAmiga is great!" ----ENVIRONMENT-----------------
Runtime: Robert Lougher JamVM 1.5.4
----ARGUMENTS-------------------
input: JAmiga is great!
----OUTPUT----------------------
2AhxNGMm2+VGovUdVr3mvyXfu1a9sX00
|
You have to quote the entire "input=string" bit otherwise the spaces confuse it, but it is working!
_________________ "Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion Avatar is Tabitha by Eric W Schwartz |
|
Status: Offline |
|
|