[solved] Makelangelo bat files won’t run
Shop › Forum › Makelangelo Polargraph Art Robot › [solved] Makelangelo bat files won’t run
- This topic is empty.
-
AuthorPosts
-
2014-04-25 at 19:21 #5968AnonymousInactive
The newest version of the software greatly improves the start32.bat and start64.bat files.
If the software won’t run it’s probably because the bat file can’t find java.exe. Either you don’t have java installed or your java installation is corrupt because the bat file can’t find the registry key for
HKEY_LOCAL_MACHINESOFTWAREJavasoftJava Runtime EnvironmentCurrentVersion
Most of the time this can be solved by reinstalling Java.
If that still doesn’t work then things get more interesting.
First locate your installation of Java. I open Windows Explorer and go looking. Likely locations I’m aware of are C:Program Files (x86)Java, C:Java, C:Program FilesJava. Inside that .Java folder is a folder that starts with “jre”. In my case it was “C:Program Files (x86)Javajre7”.
Next, I used “Start > Run > regedit.exe”.
NOTE: improper use of rededit can turn your computer into a brick. Be very careful.
In regedit I navigate the left-hand tree for HKEY_LOCAL_MACHINESOFTWAREJavaSoft.
If it I can’t find it then I know Java installation must be borked in some wierd way, so I have to create keys and values. Here are the list of keys and String values I would create for jre7. [keys are in brackets.] “String values are in quotes”
[HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment]
“CurrentVersion”=”1.7”[HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment1.7]
“JavaHome”=”C:\Program Files\Java\jre7”
“RuntimeLib”=”C:\Program Files\Java\jre7\bin\client\jvm.dll”Now you can test your start32.bat or start64.bat and it should run the program. This does not entirely fix your copy of Java but it will be good enough to run the Makelangelo software.
2015-01-24 at 20:44 #6494AnonymousInactiveHello Dan,
I using Windows and I have re-installed java a couple of times and followed the regit steps you outlined but still no success.
The Makelengelo BAT files are working fine, but Robot Arm BAT files are not.Any further advice?
2015-01-24 at 23:09 #6495AnonymousInactiveLet me see if I can update the Arm3 bat files for you. Here’s start32.bat
:: special thanks to http://rgagnon.com/javadetails/java-0642.html
:: http://stackoverflow.com/questions/638301/discover-from-a-batch-file-where-is-java-installed
@echo off
cls
setlocal ENABLEEXTENSIONS
::
:: get the current java version
:::CheckOS
IF EXIST “%PROGRAMFILES(X86)%” (GOTO 64bit) ELSE (GOTO 32bit)
:64bit
FOR /F “skip=2 tokens=2*” %%A IN (‘REG QUERY “HKLMSoftwareWow6432NodeJavaSoftJava Runtime Environment” /v CurrentVersion’) DO set CurVer=%%B
FOR /F “skip=2 tokens=2*” %%A IN (‘REG QUERY “HKLMSoftwareWow6432NodeJavaSoftJava Runtime Environment%CurVer%” /v JavaHome’) DO set JAVA_HOME=%%B
GOTO endos
:32bit
FOR /F “skip=2 tokens=2*” %%A IN (‘REG QUERY “HKLMSoftwareJavaSoftJava Runtime Environment” /v CurrentVersion’) DO set CurVer=%%B
FOR /F “skip=2 tokens=2*” %%A IN (‘REG QUERY “HKLMSoftwareJavaSoftJava Runtime Environment%CurVer%” /v JavaHome’) DO set JAVA_HOME=%%B
:endos
if defined JAVA_HOME (
@echo The current Java runtime is %CurVer%
) else (
@echo Java not found.
@pause
goto end
)“%JAVA_HOME%binjava.exe” -jar Arm3.jar
:end
2015-01-24 at 23:10 #6496AnonymousInactiveHere’s start64.bat
:: special thanks to http://rgagnon.com/javadetails/java-0642.html
:: http://stackoverflow.com/questions/638301/discover-from-a-batch-file-where-is-java-installed
@echo off
cls
setlocal ENABLEEXTENSIONS
::
:: get the current version
::
FOR /F “skip=2 tokens=2*” %%A IN (‘REG QUERY “HKLMSoftwareJavaSoftJava Runtime Environment” /v CurrentVersion’) DO set CurVer=%%BFOR /F “skip=2 tokens=2*” %%A IN (‘REG QUERY “HKLMSoftwareJavaSoftJava Runtime Environment%CurVer%” /v JavaHome’) DO set JAVA_HOME=%%B
if defined JAVA_HOME (
@echo The current Java runtime is %CurVer%
) else (
@echo Java not found.
goto end
)“%JAVA_HOME%binjava.exe” -jar Arm3.jar
:end
@pause2015-01-24 at 23:38 #6497AnonymousInactiveThanks…I imported your 32Bat file and this is the message that I received…can you see where the problem is? The 64Bat did not work. This is the path to my java.exe…C:ProgramDataOracleJavajavapath
The current Java runtime is 1.8
Catched MalformedURLException: Could not open InputStream for URL ‘rsrc:gluegen-
rt-natives-windows-i586.jar’, while addNativeJarLibsImpl(classFromJavaJar class
com.jogamp.common.os.Platform, classJarURI jar:rsrc:gluegen-rt.jar!/com/jogamp/c
ommon/os/Platform.class, nativeJarBaseName gluegen-rt-natives-windows-i586.jar):
[ rsrc:gluegen-rt.jar -> rsrc: ] + gluegen-rt-natives-windows-i586.jar -> slim:
jar:rsrc:gluegen-rt-natives-windows-i586.jar!/
Exception in thread “main” java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.UnsatisfiedLinkError: Can’t load library: C:Usersbpeter27
DocumentsKSU2014-15Spring 2015ElectiveUarmArm3-masterlast_official_relea
seWindowsgluegen-rt.dll
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoad
erBase.java:551)
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.ja
va:64)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNIL
ibLoaderBase.java:96)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.j
ava:414)
at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrar
y(DynamicLibraryBundle.java:388)
at com.jogamp.common.os.Platform$1.run(Platform.java:209)
at java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.common.os.Platform.(Platform.java:179)
at javax.media.opengl.GLProfile.(GLProfile.java:83)
at com.jogamp.opengl.util.AnimatorBase.(AnimatorBase.java:90)
at Arm3.(Arm3.java:44)
at Arm3.GetInstance(Arm3.java:59)
at Arm3.main(Arm3.java:54)
… 5 more
Press any key to continue . . .2015-01-25 at 02:18 #6498AnonymousInactiveFrom what I see here, gluegen is failing to load. Unsatisfied linker error? gluegen is supposed to be in the Arm3.jar file.
It looks like it’s entirely my fault! The latest release of the Arm3 isn’t running on my dev kit, either. This is my highest priority.
-
AuthorPosts
- You must be logged in to reply to this topic.