Life In 19x19 http://www.lifein19x19.com/ |
|
Alternative Java Runtimes http://www.lifein19x19.com/viewtopic.php?f=24&t=10234 |
Page 1 of 1 |
Author: | Charlie [ Fri May 02, 2014 2:24 am ] |
Post subject: | Alternative Java Runtimes |
This might be an overly optimistic question but are there any alternative Java runtimes for Windows that will...
I do not have any version of Java on my new-ish laptop and refuse to install the distribution that Oracle serves. Oh... and what's happening with the mythical browser-based KGS thing that has been promised for so long? |
Author: | Bonobo [ Fri May 02, 2014 4:21 am ] |
Post subject: | Re: Alternative Java Runtimes |
Charlie wrote: [..] I have no answer to your Java-related questions, but …Quote: Oh... and what's happening with the mythical browser-based KGS thing that has been promised for so long? see William Shubert’s dev blog on Google plus https://plus.google.com/u/0/+Gokgs/postsLatest post there: Quote: Shared publicly - 24 Apr 2014 It's been a while since the last update so I just thought I'd post here to say that I'm still working daily on the Android client. It's one of those things where the last 10% of the work takes 90% of the time - connecting up all the dialogs, minor functions, etc. needed. I have started on the game window but still haven't come up with a new look for it that I really like. I'll post here when I do. Greetings, Tom |
Author: | quantumf [ Fri May 02, 2014 5:16 am ] |
Post subject: | Re: Alternative Java Runtimes |
Charlie wrote: This might be an overly optimistic question but are there any alternative Java runtimes for Windows that will...
I do not have any version of Java on my new-ish laptop and refuse to install the distribution that Oracle serves. You can try openjdk, but the degree to which it works on Windows seem dubious. The lack of downloads from the openjdk site itself is telling. http://stackoverflow.com/questions/5991 ... windows-os I too am horrified at the ask.com nonsense that Oracle uses by default. You can avoid it, however: http://www.zdnet.com/if-you-need-java-u ... 000010157/ |
Author: | levelonedev [ Fri May 02, 2014 7:32 am ] |
Post subject: | Re: Alternative Java Runtimes |
You can have more than one version of Java installed on your machine. I don't understand why people won't just install Java 6 and stop complaining. There are other interpreted languages that have a sharded user base because they won't move on from a major version. (Python, PHP, Ruby....) http://www.oracle.com/technetwork/java/ ... 37-oth-JPR It might ask you to sign up for an account. If it does just use https://www.guerrillamail.com/ to sign up for one and then forget about the account! It's not like you'll need it ever again or Oracle really needs your information. You get stone sounds! You have no security settings to faff about with. Once you install this I would run ONLY KGS with this JDK/JRE (Which is easy to default everything to the new version anyways). You'll need to download the cgoban.JAR from their website and then use javaw.exe to launch it with a shortcut. If you have any questions I'll be glad to help. |
Author: | Charlie [ Thu May 08, 2014 8:57 am ] |
Post subject: | Re: Alternative Java Runtimes |
I have had some success running Cgoban and Cgoban-h under Zulu™: A Commercialized OpenJDK™ for Windows and Linux http://www.azulsystems.com/products/zulu Zulu can be downloaded as a Zip file requiring absolutely zero installation and allowing javaw.exe to be executed directly and, in my opinion, that is just perfect. (It's 64-bit only but that is not a problem for me.) Sadly, even with version 1.6, nothing I can do will make KGS stone-click sounds sound. I have tried to get big-ugly-hack to work with Zulu, I have tried the `-Dsun.sound.useNewAudioEngine="false"' trick and I have tried two different versions of Cgoban-h (found via Google) |
Author: | quantumf [ Thu May 08, 2014 1:03 pm ] |
Post subject: | Re: Alternative Java Runtimes |
Charlie wrote: I have had some success running Cgoban and Cgoban-h under Zulu™: A Commercialized OpenJDK™ for Windows and Linux http://www.azulsystems.com/products/zulu Interesting find, and interesting model. I was intrigued about it's possibilities for the product I work on in real life, but sadly, Zulu is only supported on Linux and Windows, not AIX and HPUX. Should be enough for most desktop O/S's, tho. |
Author: | Charlie [ Fri May 09, 2014 1:58 am ] |
Post subject: | Re: Alternative Java Runtimes |
I did some more hacking with Zulu and KGS, last night, attempting to resurrect the stone sounds. I ended my struggle with the `testaudio.jar' that was used in the old KGS-stone-sound thread. In Zulu's Java SE 6, 7 or 8, without big-ugly-hack, I get output similar to this: With big-ugly-hack in ..\jre\lib\ext I get the following promising output but no sound actually plays: Testing on the KGS board shows similar behaviour - no sound under either environment. I tested some other features of the KGS client and did achieve sounds. (Specifically: the test-microphone feature replayed my voice correctly.) This behaviour is consistent with the stone-click-sound bug. Stone click sounds are the missing piece, the final unknown. If I can solve it, I will put up a simple tutorial ("How to KGS!!") explaining a minimal footprint, malware free and portable installation of this dratted client. |
Author: | leichtloeslich [ Fri May 09, 2014 4:01 am ] |
Post subject: | Re: Alternative Java Runtimes |
Charlie wrote: If I can solve it, I will put up a simple tutorial ("How to KGS!!") explaining a minimal footprint, malware free and portable installation of this dratted client. Didn't levelonedev do exactly that? |
Author: | quantumf [ Fri May 09, 2014 11:49 am ] |
Post subject: | Re: Alternative Java Runtimes |
The levelonedev solution is, I think, a perfectly fine solution, but it does require the installation of (multiple versions of) Java, so is hence not a portable solution. I gather Charlie is hoping to get a solution where you can just unzip a zip file containing java, the kgs, binaries, and the appropriate launch command. |
Author: | Toge [ Sat May 10, 2014 8:47 am ] |
Post subject: | Re: Alternative Java Runtimes |
levelonedev wrote: You can have more than one version of Java installed on your machine. - I have Java 6 update 26 and Java 6 update 31 (64-bit). KGS works fine with stone sounds too. If I install the latest Java then CGoban loads Java 7 where stone sounds are missing. |
Author: | levelonedev [ Sat May 10, 2014 7:18 pm ] |
Post subject: | Re: Alternative Java Runtimes |
Toge wrote: - I have Java 6 update 26 and Java 6 update 31 (64-bit). KGS works fine with stone sounds too. If I install the latest Java then CGoban loads Java 7 where stone sounds are missing. When you install Java 7 it will set your default Java version to launch any Java program in the Java 7 VM. You can configure it to launch all your programs in 1.6 if you default it to that, but I wouldn't suggest that. SO what you need to do is modify the shortcut for KGS to launch only that program in a Java 6 VM. Download the JAR file so you don't web start it every time. Step 1: Save this file somewhere sensible. "C:\Program Files\KGS\" Perhaps? http://files.gokgs.com/javaBin/cgoban.jar Step 2: Right click Desktop -> new shortcut Step 3: Right click shortcut -> properties Step 4: Edit the target field so that it points to the Java.exe with the new audio parameter false and the cgoban.jar. For example "C:\Program Files\Java\jdk1.6.0_38\bin\java.exe" -Dsun.sound.useNewAudioEngine="false" -jar "C:\Program Files\KGS\cgoban.jar" Tada! Now only KGS runs with the out of date Java. |
Author: | Toge [ Sun May 11, 2014 4:07 am ] |
Post subject: | Re: Alternative Java Runtimes |
I've been opening KGS with cgoban.jnlp from desktop (it shows Java 6 splash screen). Cgoban.jar opens KGS too without the splash screen. I assume that the Java executable it's pointing to is this: C:\Program Files\Java\jre6\bin\Java.exe I'm not sure if that's the correct executable. There's java.exe, javacpl.exe, javaw.exe and javaws.exe Anyway, when I made the shortcut as you said, there was a dos box that flashes briefly on the screen and cgoban didn't launch. |
Author: | levelonedev [ Sun May 11, 2014 11:36 am ] |
Post subject: | Re: Alternative Java Runtimes |
Can you post your shortcut target strings for both? |
Author: | Toge [ Mon May 12, 2014 6:39 am ] |
Post subject: | Re: Alternative Java Runtimes |
I put shortcut target as follows: "C:\Program Files\Java\jre6\bin\java.exe" -Dsun.sound.useNewAudioEngine="false" "C:\Program Files\KGS\cgoban.jar" It flashes a dos box and ends without launching CGoban. Edit: I forgot -jar in the middle. Now it keeps that annoying dos box open and also opens CGoban. If I close the box CGoban closes too. |
Author: | Javaness2 [ Mon May 12, 2014 12:04 pm ] |
Post subject: | Re: Alternative Java Runtimes |
I would have thought you could have closed the dos prompt without killing cgoban. Strange that they seem to be linked.. Actually, I've been thinking of including this solution in the help wiki for KGS - but is it too technical? |
Author: | quantumf [ Mon May 12, 2014 12:27 pm ] |
Post subject: | Re: Alternative Java Runtimes |
Toge wrote: I put shortcut target as follows: "C:\Program Files\Java\jre6\bin\java.exe" -Dsun.sound.useNewAudioEngine="false" "C:\Program Files\KGS\cgoban.jar" It flashes a dos box and ends without launching CGoban. Edit: I forgot -jar in the middle. Now it keeps that annoying dos box open and also opens CGoban. If I close the box CGoban closes too. Use javaw.exe - that doesn't open the dos box. |
Author: | kivi [ Mon May 12, 2014 12:34 pm ] |
Post subject: | Re: Alternative Java Runtimes |
Alternatively, I think you can use javaws.exe on cgoban.jnlp file, without the -jar option. |
Author: | levelonedev [ Tue May 13, 2014 1:48 am ] |
Post subject: | Re: Alternative Java Runtimes |
Thanks quantumf! I forgot to add javaw.exe to the shortcut, because I do everything from command line while developing more often. kivi wrote: Alternatively, I think you can use javaws.exe on cgoban.jnlp file, without the -jar option. I remember fixing this on my Desktop and having problems with javaws "fixing" my shortcut on the desktop and I ended up on Java 7 again anyways. I could be wrong but I seem to remember there being problems using javaws and the shortcut remaining relevant. |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |