Login  Register

Re: Ubuntu 12.04 Jogl 2.0 installation from the command line

Posted by Agent Mulder on Nov 20, 2012; 2:40pm
URL: https://forum.jogamp.org/Ubuntu-12-04-Jogl-2-0-installation-from-the-command-line-tp4027073p4027078.html

Running

% wget http://jogamp.org/deployment/v2.0-rc11/archive/jogamp-all-platforms.7z &>  error.txt
% 7z x http://jogamp.org/deployment/v2.0-rc11/archive/jogamp-all-platforms.7z &>> error.txt
% javac -cp jar/jogl-all.jar:jar/gluegen-rt.jar YourDemo.java                                  &>> error.txt
% java -cp jar/jogl-all.jar:jar/gluegen-rt.jar:. YourDemo.java                                  &>> error.txt

gives me:

--2012-11-20 15:30:18--  http://jogamp.org/deployment/v2.0-rc11/archive/jogamp-all-platforms.7z
Resolving jogamp.org (jogamp.org)... 46.4.52.69, 2a01:4f8:140:1225::1:1
Connecting to jogamp.org (jogamp.org)|46.4.52.69|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17113424 (16M) [text/plain]
Saving to: `jogamp-all-platforms.7z.2'

 16550K .......... .......... .......... .......... .......... 99% 1.37M 0s
 16600K .......... .......... .......... .......... .......... 99% 1.32M 0s
 16650K .......... .......... .......... .......... .......... 99% 1.30M 0s
 16700K .......... ..                                         100% 1.51M=12s

2012-11-20 15:30:31 (1.33 MB/s) - `jogamp-all-platforms.7z.2' saved [17113424/17113424]


7-Zip 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)


Error:
there is no such archive
javac: file not found: YourDemo.java
Usage: javac <options> <source files>
use -help for a list of possible options
Exception in thread "main" java.lang.NoClassDefFoundError: YourDemo/java
Caused by: java.lang.ClassNotFoundException: YourDemo.java
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: YourDemo.java. Program will exit.