Post
Topic
Board Announcements (Altcoins)
Re: NAS :: Descendant of NXT 100% PoS|More Exchanges|WinNAS is ready!
by
User1397367406
on 16/05/2015, 19:40:49 UTC
I try both 1.1.6 and 1.1.3 but get a error:
Code:
Error: Could not find or load main class nxt.Nxt

The java is version 1.8.0_45
This can be a problem with these new versions of java?  Which version are you running?

Are you using the sources or the zip file?, Linux or Windows?,
Maybe it's a problem of directory or files permission in Linux, as distribution file is zipped in Windows.
That Java version is not the problem.
I use the .zip files.
The previous version in OP works, the system is Mint17 and SUSE13, both x64

I think the problem is the default java version used.
I have/had the same problem here on Ubuntu and i have several Java versions installed: 6,7 and 8 (6 and 7 are OpenJDK, 8 is Oracle)
Might be a problem with OpenJDK, not sure if Java 8 is required or an Oracle Java is required(patapato might know more about it).
What i think is that both 1.1.6.N1 and 1.1.3.N2 require Java 8.

Here is what i get in the terminal:
Code:
java -version
I get:
Code:
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
Using this version(./run.sh in terminal in nas folder) i get:
Code:
Error: Could not find or load main class nxt.Nxt

Using java 8, located here in "/usr/lib/jvm/java-8-oracle/jre/bin/java" it works fine:
Code:
/usr/lib/jvm/java-8-oracle/jre/bin/java -version
I get:
Code:
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
Launching it with the following command:
Code:
/usr/lib/jvm/java-8-oracle/jre/bin/java -cp nxt.jar:lib/*:conf nxt.Nxt

On Ubuntu(might work on Mint and Suse) i can get the installed Java version with the following:
Code:
update-alternatives --list java
I get:
Code:
/usr/bin/gij-4.6
/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
/usr/lib/jvm/java-8-oracle/jre/bin/java

You can change the default Java using:
Code:
update-alternatives --config java
I get:
Code:
There are 4 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-8-oracle/jre/bin/java          1062      auto mode
  1            /usr/bin/gij-4.6                                 1046      manual mode
  2            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
* 3            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1051      manual mode
  4            /usr/lib/jvm/java-8-oracle/jre/bin/java          1062      manual mode

Press enter to keep the current choice[*], or type selection number:

Hope this helps.