• Welcome to the Speedsolving.com, home of the web's largest puzzle community!
    You are currently viewing our forum as a guest which gives you limited access to join discussions and access our other features.

    Registration is fast, simple and absolutely free so please, join our community of 40,000+ people from around the world today!

    If you are already a member, simply login to hide this message and begin participating in the community!

CCT in Linux (Ubuntu)

Status
Not open for further replies.

blah

brah
Joined
Dec 30, 2007
Messages
2,139
Location
.
Does anyone know how to launch CCT in Ubuntu? I click on the .jar file, and the splash screen with the cube monster thingy appears, then it just hangs there and I have to force quit CCT, happened about ten times already.

I don't have a problem launching JNet though, but I hate JNet.
 

blah

brah
Joined
Dec 30, 2007
Messages
2,139
Location
.
Somehow, I just expected you to reply, Shelley :p Yeah I guess I do, because I can run JNet, and when I right click CCT it gives me the option to "Open with Sun Java 6 Runtime", so I'm pretty sure I have it. It's just that when I click on it, the splash screen appears, then it hangs there and I have to Force Quit it :p
 

mrCage

Member
Joined
Jun 17, 2006
Messages
655
Hi :)

You may try to run it in Vine or other windows "virtual machine".

While you are at it, make a normal bootable winxpsp3 partition;)

- Per
 

DcF1337

Member
Joined
Jul 4, 2008
Messages
310
Vine? You mean Wine?

Try Wine. It hasn't failed me yet. But I don't use Ubuntu as my main, so no promises.
 

brunson

Member
Joined
Feb 17, 2008
Messages
1,119
Location
Westminster, CO
WCA
2008BRUN01
Try running "java -jar CALCubeTimer.jar" from the command line while in the same directory as the jar file. Any ensuing error messages will probably be helpful.
 

fw

Member
Joined
Aug 1, 2007
Messages
120
Make sure you have the correct java version, like shelley said. It is possible, that you have the correct one installed, but the system runs it with another version (you can have two different ones installed). Try like brunson said, if it fails, post the output of "java -version".

Running a java (!!) program under linux by using wine is pretty stupid...
 

blah

brah
Joined
Dec 30, 2007
Messages
2,139
Location
.
Oh thanks brunson, the Terminal thingy worked :) But I don't understand, isn't typing that the exact same thing as double-clicking on the CALCubeTimer.jar icon? It still hangs at the splash screen when I double-click, but launches fine when I do the Terminal thingy. And this also means CCT shuts down too if I happen to accidentally close Terminal for some unknown reason.

Edit: I discovered something even more ridiculous. If I just type
Code:
java -jar <entire directory>/CALCubeTimer.jar
it hangs too. But if I type
Code:
cd <entire directory>
java -jar CALCubeTimer.jar
it runs fine. What on earth is going on?!
 
Last edited:

fw

Member
Joined
Aug 1, 2007
Messages
120
I guess if you double click, it runs another java version... do "java -version".. try creating a shortcut or shellscript which explicitly calls that version.. I think the parameter for "-jar" has to be the name of the class in the jar package which contains the main method.. but I am not sure..
 

jfly

Member
Joined
Aug 23, 2008
Messages
226
Location
California
WCA
2005FLEI01
YouTube
Visit Channel
Sorry to resurrect an old thread, but I was wondering if you still experience the same problem with trying to invoke CCT from outside of its directory. This is a problem I'm pretty sure we fixed in between v 0.2 and 0.9, but I never really tested it. Confirmation that's it's working (or isn't) would be great.
 

lilkdub503

Member
Joined
Jul 7, 2009
Messages
264
Location
El Barrio
WCA
2010WARR01
Does anyone know how to use 0.9.5 on Ubuntu 9.10? It extracts just fine, but when I click on the .jar file, I don't know what to do. I tried the terminal, and it just says
Code:
java -jar CALCubeTimer.jar
Unable to access jarfile CALCubeTimer.jar
I just started using Ubuntu about 2 days ago, so I barely know what I'm doing.
 

masterofthebass

Premium Member
Joined
May 13, 2007
Messages
3,923
Location
Denver, CO
WCA
2007COHE01
YouTube
Visit Channel
Code:
venim@venim-desktop:~/Dropbox/cct-0.9.5$ java -jar CALCubeTimer.jar 
Attempting to load 2phase.Slice_URFtoDLF_Parity_Prun
java.io.FileNotFoundException: 2phase.Slice_URFtoDLF_Parity_Prun (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at java.io.FileInputStream.<init>(FileInputStream.java:66)
	at org.kociemba.twophase.CoordCube.loadTable(CoordCube.java:100)
	at org.kociemba.twophase.CoordCube.<clinit>(CoordCube.java:314)
	at org.kociemba.twophase.Search.solution(Search.java:159)
	at scramblePlugins.CubeScramble.setAttributes(CubeScramble.java:104)
	at scramblePlugins.CubeScramble.<init>(CubeScramble.java:63)
	at scramblePlugins.CubeScramble.<init>(CubeScramble.java:56)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at net.gnehzr.cct.scrambles.ScramblePlugin$2.call(ScramblePlugin.java:441)
	at net.gnehzr.cct.scrambles.ScramblePlugin$2.call(ScramblePlugin.java:1)
	at net.gnehzr.cct.scrambles.TimeoutJob$ThreadJob.run(TimeoutJob.java:22)

That's what happens when I try and run 0.9.5. I guess that's why I'm still using 0.9.4.
 

Cride5

Premium Member
Joined
Jan 27, 2009
Messages
1,228
Location
Scotland
WCA
2009RIDE01
I tried running CCT 0.95 on my system to track the problem down, but I had no problems. Only thing which might be helpful to you is the versions of Ubuntu/Java I'm running, which are:
Code:
$ cat /etc/issue
Ubuntu 8.04.4 LTS \n \l

$ uname -a
Linux geosl290 2.6.24-26-generic #1 SMP Tue Dec 1 18:37:31 UTC 2009 i686 GNU/Linux

$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
 

iasimp1997

Member
Joined
Nov 27, 2009
Messages
403
Location
The Matrix
WCA
2010SIMP01
YouTube
Visit Channel
Does anyone know how to use 0.9.5 on Ubuntu 9.10? It extracts just fine, but when I click on the .jar file, I don't know what to do. I tried the terminal, and it just says
Code:
java -jar CALCubeTimer.jar
Unable to access jarfile CALCubeTimer.jar
I just started using Ubuntu about 2 days ago, so I barely know what I'm doing.

Transfer CCT stuff over to "Utilities" (If you're on a Mac) and then open the jar. file.
 

shelley

chang
Joined
Apr 23, 2006
Messages
1,683
WCA
2004CHAN04
Last edited:

tim

Member
Joined
Nov 22, 2006
Messages
1,692
Location
Karlsruhe, Germany
WCA
2007HABE01
YouTube
Visit Channel
Does anyone know how to use 0.9.5 on Ubuntu 9.10? It extracts just fine, but when I click on the .jar file, I don't know what to do. I tried the terminal, and it just says
Code:
java -jar CALCubeTimer.jar
Unable to access jarfile CALCubeTimer.jar
I just started using Ubuntu about 2 days ago, so I barely know what I'm doing.

Transfer CCT stuff over to "Utilities" (If you're on a Mac) and then open the jar. file.

Why bother posting this when he clearly isn't?

Even if he is, Utilities is definitely the wrong place.
 
Status
Not open for further replies.
Top