# CCT in Linux (Ubuntu)

Status
Not open for further replies.

#### blah

##### brah
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.

#### shelley

##### chang
Do you have the latest version of Java? CCT requires Java 6 (or Java 1.6, or whatever it is).

#### blah

##### brah
Somehow, I just expected you to reply, Shelley 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

#### mrCage

##### Member
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
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
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
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
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
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
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
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.

you need to navigate to the directory that CALCubeTimer.jar is saved in.

try "cd" and "ls"

#### masterofthebass

Code:
[email protected]:~/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.

##### Member
That's what happens when I try and run 0.9.5. I guess that's why I'm still using 0.9.4.
What version of Java do you have installed? I'm using Java 6 and can run 0.9.5 without a hitch.

#### Cride5

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)

#### spdqbr

##### Member
lilkdub503, looks like a permission problem. Give this a go:
Code:
chmod a+r CALCubeTimer.jar
java -jar CALCubeTimer.jar

#### iasimp1997

##### Member
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
Does anyone know how to use 0.9.5 on Ubuntu 9.10?
[...]
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.
CCT in Linux (Ubuntu)
I think you may be missing something.

Last edited:

#### tim

##### Member
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.

#### lilkdub503

##### Member
you need to navigate to the directory that CALCubeTimer.jar is saved in.

try "cd" and "ls"
The unzipped file is simply the default, and sitting on my desktop. Is there anything I need to put ahead or behind the string?

Status
Not open for further replies.