Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
69 user(s) are online (58 user(s) are browsing Forums)

Members: 0
Guests: 69

more...
Support us!
Recent OS4 Files
OS4Depot.net



(1) 2 »


Developers Kit
Just popping in
Joined:
2007/7/30 21:55
From Sweden
Posts: 180
On AmiUpdate you can find an update consisting of a few developer's files. There's a new Java compiler, a simple example, as well as documentation.

Just update your system, go to JAmiga:Documents/Developer.guide, and you're just minutes away from compiling your own applications.

I'll try to add more info on how you can use it with various third-party jar files.

_________________
Maintainer and developer for Jamiga2 - Java for Amiga
   Report Go to top

Re: Developers Kit
Just popping in
Joined:
2006/12/7 15:39
From Denmark
Posts: 89
@jaokim
You rock!

_________________
Alien Air Attack

SAM440@733 mhz as main amiga.
   Report Go to top

Re: Developers Kit
Home away from home
Joined:
2006/11/26 21:45
From A haunted Castle somewhere in the Bavarian Mountains
Posts: 2878
@jaokim

Wow, thanks a lot

_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. John Zoidberg
   Report Go to top

Re: Developers Kit
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 4193
Installed over amiupdate, have a go for simple test cases: works. Cool !

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Developers Kit
Just can't stay away
Joined:
2007/2/23 13:49
From Finland, the land of Santa, sauna, sisu and salmiakki
Posts: 1059
@jaokim

Trying to compile HelloWorld.java using the instructions I got: "java.lang.ClassNotFoundException: org/eclipse/jdt/internal/compiler/batch/Main".

_________________
Rock lobster bit me, so excuse me.
X1000 + AmigaOS 4.1 FE. Be authentic.
"Anyone can build a fast CPU. The trick is to build a fast system." - Seymour Cray
   Report Go to top

Re: Developers Kit
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
@Joakim

Here i got
10.Amiga OS 4:System/JAmiga/Examples> list
HelloWorld.java 596 ----rw-d 09-Déc-13 22:27:12
1 fichier - 596 octets - 2 blocs utilisés

10.Amiga OS 4:System/JAmiga/Examples> jamiga:javac Helloworld.java
Starting compiler...
Exception occurred while VM initialising.
java/lang/NoClassDefFoundError: jamvm/java/lang/VMClassLoaderData
Done!
10.Amiga OS 4:System/JAmiga/Examples> list
HelloWorld.java 596 ----rw-d 09-Déc-13 22:27:12
1 fichier - 596 octets - 2 blocs utilisés

   Report Go to top

Re: Developers Kit
Just popping in
Joined:
2007/7/30 21:55
From Sweden
Posts: 180
@TSK & JosDuchIt:

Hmm. Perhaps something is wrong with your CLASSPATH ENV-variable.

There are a few things needed in order to make it work:
1. The "CURRDIR:" assign needs to be in the CLASSPATH ENV variable.
2. The CLASSPATH ENV variable must be in uppercase. Even if the Amiga command getenv ignores the case, the internal getenv used by JamVM doesn't.

I tried to make my AutoInstall script fix these issues, even if you had your own CLASSPATH set.

So, please check these things:

1. Check uppercase CLASSPATH ENV
In CLI do:
dir ENV:classpat#?, and
dir ENVARC:classpat#?

Both should return CLASSPATH in uppercase:
CLASSPATH

If its in lowercase, please rename the files (or delete them both, and do the setenv thing below.)


2. Check CURRDIR in CLASSPATH ENV
In CLI do:
getenv CLASSPATH

It should return something like
CURRDIR:,
or, CURRDIR: followed by your previous settings
CURRDIR:,JAmiga:,Work:blabla/,[other drawers you might have added]

If it doesn't have CURRDIR:, please set the CLASSPATH ENV to "CURRDIR:," (or add it to the beginning of whatever you have).

setenv SAVE CLASSPATH CURRDIR:, or

setenv SAVE CLASSPATH CURRDIR:,JAmiga:,Work:blabla/,[other drawers you might have added]


If that doesn't solve it, please double-click JAmiga:JAmiga, and paste the output here.


You might also try running the ECJ compiler on its own (if you look in the JAmiga:javac script file, this is basically what is done):
jamiga:jamvm -jar JAmiga:lib/ecj-4.3.jar
This should give some version info and help. If it doesn't something is very wrong.

_________________
Maintainer and developer for Jamiga2 - Java for Amiga
   Report Go to top

Re: Developers Kit
Just popping in
Joined:
2007/7/30 21:55
From Sweden
Posts: 180
Hmm... again.
Quote:
10.Amiga OS 4:Syste

Could it be the space in the drive name...?

I'm not at my miggy currently, so I can't try it. But that could be one possible reason for failure.

It might in that case work if you explicitly tell javac where the source file is:

<code>jamiga:javac jamiga:examples/HelloWorld.java</code>

_________________
Maintainer and developer for Jamiga2 - Java for Amiga
   Report Go to top

Re: Developers Kit
Just can't stay away
Joined:
2007/2/23 13:49
From Finland, the land of Santa, sauna, sisu and salmiakki
Posts: 1059
@jaokim

CLASSPATH env var is fully in capital letters and contains: CURRDIR:,

No spaces in the volume name or path.

Btw. I don't have any eclipse directory in classpath/share/classpath/org or any other similar directory. Do that matter ?

The output of double clicking the JAmiga icon:

== This is JAmiga - Java for AmigaOS 4 ==
This script will give you information on all installed
parts of JAmiga.
When reporting errors this information should be included.

[JAmiga release version]
JAmiga 1.2 (15.8.13)
"JAmiga release version"

[JamVM version]
jamvm 1.4 (2.11.13)
AmigaOS 4 build of jamvm 1.5.4
java version "1.5.0"
JamVM version 1.5.4
Copyright (C) 2003-2012 Robert Lougher <rob@jamvm.org.uk>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2,
or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Build information:

Execution Engine: switch-based interpreter
Compiled with: gcc 4.2.4 (adtools build 20090118)

Boot Library Path: JAmiga:classpath/lib/classpath
Boot Class Path: JAmiga:jvm/share/jamvm/classes,JAmiga:classpath/share/classpath

[JAmiga native libraries version]
JAmiga:classpath/lib/classpath/gnuclasspath.library: gnuclasspath.library 0.1
JAmiga:classpath/lib/classpath/jamint.library: jamint.library 1.0
JAmiga:classpath/lib/classpath/jammsg.library: jammsg.library 1.1
JAmiga:classpath/lib/classpath/javaio.library: javaio.library 2.1
JAmiga:classpath/lib/classpath/javalang.library: javalang.library 2.0
JAmiga:classpath/lib/classpath/javanet.library: javanet.library 2.2
JAmiga:classpath/lib/classpath/javanio.library: javanio.library 2.6
JAmiga:classpath/lib/classpath/javautil.library: javautil.library 0.12
JAmiga:classpath/lib/classpath/openjdk.library: gnuclasspath.library 0.1

[JAmiga ENV variables]
CLASSPATH CURRDIR:,$cptemp

[Testing JVM]
JAmiga has been successfully installed!

_________________
Rock lobster bit me, so excuse me.
X1000 + AmigaOS 4.1 FE. Be authentic.
"Anyone can build a fast CPU. The trick is to build a fast system." - Seymour Cray
   Report Go to top

Re: Developers Kit
Just popping in
Joined:
2007/7/30 21:55
From Sweden
Posts: 180
@TSK
Quote:
[JAmiga ENV variables]
CLASSPATH CURRDIR:,$cptemp

Aha!
I believe that last $cptemp might destroy things. Try and do this:
setenv SAVE CLASSPATH CURRDIR:,

The $cptemp thing must have been added by my autoinstall, when an existing classpath env was empty... Or something like that. I'll try to fix that, so no-one else gets the same. But try the setenv, and I hope it'll fix things.

_________________
Maintainer and developer for Jamiga2 - Java for Amiga
   Report Go to top

Re: Developers Kit
Just popping in
Joined:
2007/7/30 21:55
From Sweden
Posts: 180
@TSK
So I tried with setting my CLASSPATH to "CURRDIR:,$cptemp", and it works. So that's not your problem.

You however seem to have a few old libraries:

JAmiga:classpath/lib/classpath/javaio.library: javaio.library 2.1
should be 2.2 2013-07-03
JAmiga:classpath/lib/classpath/javalang.library: javalang.library 2.0
should be 2.1 2013-06-11
JAmiga:classpath/lib/classpath/javanio.library: javanio.library 2.6
should be 2.7 2013-08-22
JAmiga:classpath/lib/classpath/javautil.library: javautil.library 0.12

Have you updated all libraries for JAmiga? (I apparently didn't check for those dependencies for the developer kit.)

If you can't find them in AmiUpdate, I have done something terribly wrong somewhere.

_________________
Maintainer and developer for Jamiga2 - Java for Amiga
   Report Go to top

Re: Developers Kit
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1420
i tried jamiga extremely briefly when i installed it, but i was greeted by a crash. this was my first install of jamiga, and it was the latest version (two weeks ago).

i'll check it out again and try to give you a bugreport.

   Report Go to top

Re: Developers Kit
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1420
Only console based apps are possible to run yet i believe?
I found this site http://java-apps.org that has a collection of java apps, some of them looks quite nice!

it was hard to find console based apps though.

   Report Go to top

Re: Developers Kit
Just popping in
Joined:
2007/7/30 21:55
From Sweden
Posts: 180
@spotUP

Yes, only console based stuff currently. I've tried finding existing console applications, but I think we're better of build our own. I had my infamous Twitter example, which merely shows an example of using third party, unmodified JAR files. Its not terribly exiting, but with some clever Arexx-ing I think the use of third-party libraries might be useful. One could theoretically use some sort of Java Google calendar library and synn stuff with limpidclock, for instance. But that requires some amount of Java programming knowledge - but it isn't that hard.

I'm currently looking at enabling a GIT versioning client, but that requires another native library which I haven't finished yet (as described on the blog).

The crash would be interesting seeing!

_________________
Maintainer and developer for Jamiga2 - Java for Amiga
   Report Go to top

Re: Developers Kit
Just can't stay away
Joined:
2007/2/23 13:49
From Finland, the land of Santa, sauna, sisu and salmiakki
Posts: 1059
@jaokim

I removed that $cptemp from the env already and that didn't change anything. Also I downloaded Jamiga from os4depot.net and installed it again just to make sure it was the latest version (before my previous post here). I didn't find any archives from your website. AmiUpdate doesn't have any updates. I will be away from home tomorrow.

_________________
Rock lobster bit me, so excuse me.
X1000 + AmigaOS 4.1 FE. Be authentic.
"Anyone can build a fast CPU. The trick is to build a fast system." - Seymour Cray
   Report Go to top

Re: Developers Kit
Just popping in
Joined:
2007/7/30 21:55
From Sweden
Posts: 180
@TSK:

That's really strange. I just did the same on my debug system -- installed 1.2 from os4depot, and I found 5 JAmiga updates available in AmiUpdate. I've put a screengrab of it at os4depot. (It hasn't been approved at time of writing this though.)

Do you have more than one installations of JAmiga? Does the assign point to the correct drawer? Is it a fresh reboot? (I'm thinking if the libraries are somehow cached.)

_________________
Maintainer and developer for Jamiga2 - Java for Amiga
   Report Go to top

Re: Developers Kit
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1081
@Joakim

still does not work

I got this from the report



Boot Library Path: JAmiga:classpath/lib/classpath
Boot Class Path: JAmiga:jvm/share/jamvm/classes,JAmiga:classpath/share/classpath

[JAmiga native libraries version]
JAmiga:classpath/lib/classpath/gnuclasspath.library: gnuclasspath.library 0.1
JAmiga:classpath/lib/classpath/jamint.library: jamint.library 1.0
JAmiga:classpath/lib/classpath/jammsg.library: jammsg.library 1.1
JAmiga:classpath/lib/classpath/javanet.library: javanet.library 2.2
JAmiga:classpath/lib/classpath/javautil.library: javautil.library 0.12
JAmiga:classpath/lib/classpath/openjdk.library: gnuclasspath.library 0.1
JAmiga:classpath/lib/classpath/javaio.library: javaio.library 2.2
JAmiga:classpath/lib/classpath/javalang.library: javalang.library 2.1
JAmiga:classpath/lib/classpath/javanio.library: javanio.library 2.7

[JAmiga ENV variables]
CLASSPATH CURRDIR:jAmiga:,

[Testing JVM]
Exception occurred while VM initialising.
java/lang/NoClassDefFoundError: jamvm/java/lang/VMClassLoaderData


I got that last line too when trying to compile the helloworld example


   Report Go to top

Re: Developers Kit
Just can't stay away
Joined:
2007/2/23 13:49
From Finland, the land of Santa, sauna, sisu and salmiakki
Posts: 1059
@jaokim

Sorry. My mistake. I did install JAmiga to A1-SE where I didn't have any previous installation. AmiUpdate offered the updates and after updating everything worked fine. Then checking AmiUpdate log on the X why it doesn't find the updates and noticed I had abandoned JAmiga updates. I think there was something like the same update was offered over and over again in the past so I had to disable them or otherwise I don't know why I had disabled them. After updating JAmiga HelloWorld example works fine. I should know this stuff already and still I'm making these kind of mistakes. I'm feeling old because the old dog doesn't learn tricks. Doh ! Sorry !

_________________
Rock lobster bit me, so excuse me.
X1000 + AmigaOS 4.1 FE. Be authentic.
"Anyone can build a fast CPU. The trick is to build a fast system." - Seymour Cray
   Report Go to top

Re: Developers Kit
Just popping in
Joined:
2007/7/30 21:55
From Sweden
Posts: 180
@JosDuchIt
Quote:

[JAmiga ENV variables]
CLASSPATH CURRDIR:jAmiga:,


The CLASSPATH is strange; there a comma missing between the assigns, and the JAmiga assign should't need to be there.

Please do this:

delete ENV:CLASSPATH
delete ENVARC:CLASSPATH

setenv SAVE CLASSPATH CURRDIR:,


The JAmiga:JAmiga should then hopefully say "JAmiga has been successfully installed!" in the end

You can see current snapshot of what JAmiga:JAmiga should say here: https://code.google.com/p/jamiga2/wiki/CurrentVersion (your's do however look mostly correct.)

If it still doesn't work, could you please verify that you have a file named VMClassLoaderData.class in JAmiga:jvm/share/jamvm/classes/jamvm/java/lang/.

That's basically what this says you don't have:
Quote:
Exception occurred while VM initialising.
java/lang/NoClassDefFoundError: jamvm/java/lang/VMClassLoaderData


_________________
Maintainer and developer for Jamiga2 - Java for Amiga
   Report Go to top

Re: Developers Kit
Just popping in
Joined:
2007/7/30 21:55
From Sweden
Posts: 180
@TSK:

Ah. I was worried I'd be in for a complicated bug hunt... :) Good that it works!

I'm still figuring out the best way to use AmiUpdate for all these tiny updates here and there, hope I've got it sorted now. Soonish I'll be releasing my tiny Twitter application along with some more developer documentation.

_________________
Maintainer and developer for Jamiga2 - Java for Amiga
   Report Go to top


(1) 2 »



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project