Author Topic: Another way to get JAVA on the CPC ?  (Read 1774 times)

0 Members and 1 Guest are viewing this topic.

Offline SRS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 646
  • Country: de
  • Schneider CPC464 - what else ?
  • Liked: 650
  • Likes Given: 377
Another way to get JAVA on the CPC ?
« on: 23:03, 20 October 17 »
After my interest in brining javagrinder to the CPC, which "slept in" last year, I found another nice one for the ... C64 (urg) ...

https://mzattera.github.io/b2fJ/

But as no one seems to use javagrinder for CPC, there seems to be not much reason to put effort into this one, aye ...

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.939
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1159
  • Likes Given: 1931
Re: Another way to get JAVA on the CPC ?
« Reply #1 on: 07:25, 21 October 17 »
Only because I haven't seen a Javagrinder for the CPC, all I could find was a Red Link on the Cross Development CPCWiki page, Fractal Coding - koch Curve, Michael Kohn - java grinder site (no Link in CPC version) & the 4th page which Google said maybe Harmful to my computer.

But my Java is practically non existant, and all my coding is done on an old PC, which is still running fine on XP. I guess if you could get the thing running Online along with Tutorial, I'd check it out.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline SRS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 646
  • Country: de
  • Schneider CPC464 - what else ?
  • Liked: 650
  • Likes Given: 377
Re: Another way to get JAVA on the CPC ?
« Reply #2 on: 14:35, 21 October 17 »
 :)

This is the start page with instructions: https://www.mikekohn.net/micro/java_grinder.php

There are the sources / build instructions: https://github.com/mikeakohn/java_grinder

You  need cygwin for it (as cpctelera does) on Win-PC.

And to get a feeling about CPC Version: https://github.com/mikeakohn/java_grinder/tree/master/samples/cpc

Which looks like: http://www.cpcwiki.eu/forum/programming/java-grinder/msg124263/#msg124263
« Last Edit: 14:38, 21 October 17 by SRS »

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.939
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1159
  • Likes Given: 1931
Re: Another way to get JAVA on the CPC ?
« Reply #3 on: 00:29, 22 October 17 »
How ironic I should post in that javagrinder thread.

I remember talking about that Quite BASIC website, though I didn't know where or when, though that's where I said it would be good if it were Online, not much different from my response above.   :-[
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 3.206
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1370
  • Likes Given: 2694
Re: Another way to get JAVA on the CPC ?
« Reply #4 on: 07:32, 22 October 17 »
I am fairly certain that I am one of the biggest Java enthusiasts on this forum. At least I doubt anyone here will praise it more than me. Any language that lets me code once and run the exact same file on many platforms is awesome. Like the way my "8-bit Memoirs" project runs on both PlayStation 3 + 4 and Xbox One + standard Blu-ray players + your PC - all from the exact same disc or ISO. And how my phone apps can run on basically any phone out there (except iPhone, because Apple). And how my desktop stuff runs on both Linux, Windows and Mac, again from the exact same jar. It was awesome when we switched servers at work from Windows based to Linux based - and my small utilities still ran without problems because I'd coded them with Java.

But all that being said, I gotta admit I don't see the point in having a JVM on the CPC, apart from it being a bit fun of course.
What would have been nice for the CPC instead, was a compiler that would let me compile my Java source into a CPC executable.  :)

I actually tried starting up something along those lines once. I called it sMIDP2lib, and the idea was to be able to copy 90% of your JavaME source into a SDCC project on the CPC. There's some info about it here on the CPCwiki. http://www.cpcwiki.eu/index.php/SMIDP2lib_for_SDCC
Although most people (as usual) kept saying it couldn't be done, we actually got pretty far. I could definitely see it happening, but the interest just wasn't there, and shortly after CPCtelera was released, and then sMIDP2lib died.
Today I think it would probably be a better idea to create Java classes for CPCtelera.

Offline funkheld

  • 464 Plus
  • *****
  • Posts: 386
  • Liked: 20
  • Likes Given: 0
Re: Another way to get JAVA on the CPC ?
« Reply #5 on: 20:29, 15 January 21 »
--------------------------
Which looks like: http://www.cpcwiki.eu/forum/programming/java-grinder/msg124263/#msg124263
-------------------------------


the start for the cpc and a functioning program is poorly described here.

« Last Edit: 11:05, 16 January 21 by funkheld »

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 12.331
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 4619
  • Likes Given: 484
Re: Another way to get JAVA on the CPC ?
« Reply #6 on: 12:34, 16 January 21 »
Although Java on a CPC sounds good, I can't think of anywhere it would be useful. How about Python for the CPC, that would have uses :)

Bryce.

Offline zhulien

  • 6128 Plus
  • ******
  • Posts: 708
  • Country: au
  • aka Vorax
    • 8bitology
  • Liked: 287
  • Likes Given: 292
Re: Another way to get JAVA on the CPC ?
« Reply #7 on: 16:39, 16 January 21 »
JavaGrinder is certainly interesting. 


The way forward of programming on CPC?  Java?  As possible as it likely is, it is likely as inefficient as tokenized BASIC.  If JavaGrinder or a JVM was able to use CPC memory in an effective way (all of it, not a little of it) and have libraries available for most hardware, i can see something good from it.  Personally, I liked VB5/VB6 before (so have most of the crosscompiler for z80 already coded) - and reworked some of the ideas into the JavaScript compiler for z80.  JavaScript has the added benefit of being able to run in a browser, and given the right library structure and a canvas, the same logic and output can run in the browser as on a CPC.  But... I don't want a JavaScript compiler to also just see 32kb or 40kb of memory - it must see it all (I have 576kb usually, but I also am playing with Toto's 1mb and Zaxon's 4mb expansions).  Ideally a compiler on a CPC would have full support of this memory.  Perhaps classes can be compiled to a limited 16kb per class - but cross class calls could then be far calls.  If all classes are byte aligned to 256bytes - then we even can store those far calls in 16 bits - that could give us an environment to completely replace BASIC or CP/M and have full hardware support - seems not a lot of interest so far - so soldiering on is soldiering on... but slowly.  CPC also is internet enabled now - so there is no excuse to to treat the internet as part of a CPC - we also have Raspberry PI's stuck to the CPC and just awaiting to be another slave of the CPC.  The internet was actually created for CPCs right :D