I defined the variable "JAVA_HOME" to "C:\Program Files\Java\jre6", but the backend still can't locate libraries provided in "C:\nessi2-SE_home\lib"
So, I moved the "neesi2.bat" and other files from the main folder to "lib' folder.. No it can see them but I am getting this problem instead: "Exception in thread "main" java.lang.NoClassDefFoundError: de/dailab/jasim/node/SimulationNode"
Can you help in this?
I am also wondering about the tool you used in your last paper "securing smart meters" is it available in beta5.1 edition?
if not, then when it is supposed to be available?
Thanks
The paper "securing smart meters" is based on our current development trunk. We have not yet decided on release date for the next version of NeSSi2, but it will be most-likely at the beginning of second 2012. If we add the smart grid related extensions, we haven't yet decided, since they are part of an ongoing research project and some parts are still under investigation.
In regards to your problem: Moving the bat file to the lib folder is not a good idea, since the CLASSPATH is constructed inside the bat-file and assumes the agents, applications and lib folder to be relative to it.
I tried to reproduce the problem by downloading the release version and putting it on a clean Windows machine, but could not reproduce your problem.
The exception you mention is actually a sign that the CLASSPATH is not correct and the files from the lib folder are missing.
Could you please provide the exception that occurred before you moved the bat file to the lib folder?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
screen_shots
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Hi,
Thanks for your response. and sorry for being late in reply, I was waiting for some kind of notification.
Well, When I run the "nessi2.bat" from "lib folder the screen blinks with "exception in thread "main"..." I attached a screen shot of the errors when trying to run the batch from the main folder or from lib folder.
Can you help? thanks in advance.
As mentioned earlier moving the batch file is not a good idea and the NoClassDefFoundError is to be expected than, so just ignore that part and don't move the batch file around.
The original problemUnsupportedClassVersionError is more interesting, it is indication that some classes on your CLASSPATH have been build with a newer Java version than you are using for starting NeSSi2, see also here for more details: http://stackoverflow.com/questions/8605005/what-is-java-lang-unsupportedclassversionerror
Do you already have added Jar files to the applications folder and maybe compiled them with Java 7?
If you have a JDK installed on your machine, please try the following:
Locate the following line in nessi2.bat:
"%JAVA_HOME%\bin\java" -Xms512M -Xmx1G -cp .;\agents\;%LOCALCLASSPATH% %NODE_OPTS% %DEBUG_OPT% de.dailab.jasim.node.SimulationNode
and replace it with this one:
javap -verbose -s -classpath .;\agents\;%LOCALCLASSPATH% %NODE_OPTS% %DEBUG_OPT% de.dailab.jasim.node.SimulationNode
Add the beginning of the output something like the following should appear:
Compiled from "SimulationNode.java"
public final class de.dailab.jasim.node.SimulationNode extends java.lang.Object implements java.lang.Runnable
SourceFile: "SimulationNode.java"
InnerClass:
#434; //class de/dailab/jasim/node/SimulationNode$1
#464; //class de/dailab/jasim/node/SimulationNode$2
minor version: 0
major version: 50
Constant pool:
If there is a different major version please let us know.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Thanks for your response.
I replaced that line in nesse2.bat.
And now all what I get is a black screen with no errors. it blinks for a second and disappears.
I didn't get what you meant by this sentence:"Do you already have added Jar files to the applications folder and maybe
compiled them with Java 7?"
Do I have to add jar files to some place? I didn't do so. Pleas let me know which folder to copy jar files to.
If I upgraded JDK, will this solve the problem? I have java 6.0.130.3!
thanks.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I hardly could get the attached screen shot!
Apparently there is a problem in "javap"
Can you help in this?
Thanks
Sorry, should have mentioned it: javap its not part of a JRE, it is only available in a JDK.
Also, if you first open a command prompt and start the batch files from there it its easier to catch the output if an error occurs.
Installing the latest JDK 6 could be a solution. Note we have not yet tested NeSSi2 with JDK 7 and can't make any promises that will work with that version.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
HI,
I installed JDK 6. And the backend is working now.
I want to mention that I had to delete the modification made on Nessi2.bat file in order to be able to run it.
Thanks a lot for your help.
Last edit: Anonymous 2013-10-26
Hai sir can you please help me about simulation back end and data base connection in