开云体育

Locked No launch from Win10 User account (admin account OK)


 

I am having a problem with my install.. which was working upon initial install and recently something change but I'm not sure what/when this happened.

I have two accounts on my Win10 machine: my normal user (admin account) and another user account I have set up. I don't use the second account all that often. I checked my Java version and it's java16 (my son is a Minecraft player, so I'm not sure of the Java version required for that, but I am well aware the _recommended_ java version for JMRI is v11) Currently using JMRI 5.3.5

Anyways.. JMRI will launch fine from my admin account but seems to hang up and shut down (don't get a start-up window at all) in my secondary user account.


Mark Z


 

Was JMRI installed for all users?

--
Peter Ulvestad

JMRI Users Group Moderator ( )
Tam Valley Group Moderator ( )
Sprog-DCC Group Moderator ( )
Edmonton Model Railroad Association ( )


 

Yes. I selected "all users" upon install. For the computer in question I believe I was running JMRI 5.0 or maybe a little later.. noticed the problem and did a 5.3.5 install (again for All Users) and that did not correct the issue.

Mark


 

Mark
The 2 accounts will have different environment set-ups such as PATH..
Compare the output of echo %PATH% in a command terminal for?each login. There may be different access permissions at least check (while you have the command prompt handy) the output of java -version? .
Steve G.


 

Here is my output for echo %PATH% and java -version on the Admin account- it appears Java 16 is installed. In my Add/Remove Programs tab I also found that OpenJDK 11 was installed.. I thought this might be a conflict so I removed OpenJDK prior to invoking these commands. However it did not have an affect on being able to successfully launch JMRI from the non-admin user account.

C:\Users\cpunc>echo %PATH%
C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Users\cpunc\AppData\Local\Microsoft\WindowsApps;
C:\Users\cpunc>java -version
java version "16.0.1" 2021-04-20
Java(TM) SE Runtime Environment (build 16.0.1+9-24)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)

Here is the output from the User account
C:\Users\NAPM Tower>echo %PATH%
C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Users\NAPM Tower\AppData\Local\Microsoft\WindowsApps;
C:\Users\NAPM Tower>java -version
java version "16.0.1" 2021-04-20
Java(TM) SE Runtime Environment (build 16.0.1+9-24)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)


The outputs appear identical to me??

Mark Z


 

Command prompt, in jmri install directory
cd "\Program Files (x86)\JMRI"
try?
?./LaunchJMRI /debug apps.PanelPro.PanelPro
Now that likely wont get you the error message you need, in which case use the really, really, reeeaaallllyyy, long command which no-one copies and pastes right the first time... NB it is one big line which the display breaks in weird places. There is no space between the - and the D.
java? -noverify -Dsun.java2d.d3d=false -Djava.security.policy=security.policy -Djogamp.gluegen.UseTempJarCache=false -Djinput.plugins=net.bobis.jinput.hidraw.HidRawEnvironmentPlugin -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel -Djava.library.path=.;lib\x64;lib -Djava.rmi.server.codebase=file:java/classes/ -Dsun.java2d.noddraw -Xms96m -Xmx2018m -Dfile.encoding=UTF-8 -Dpython.home="C:\Users\Gary Shaw\JMRI\systemfiles" -Djmri.log.path="C:\Users\Gary Shaw\JMRI\systemfiles\\" -Djava.class.path=".;classes;jmri.jar;lib\apiguardian-api-1.1.0.jar;lib\batik-anim-1.14.jar;lib\batik-awt-util-1.14.jar;lib\batik-bridge-1.14.jar;lib\batik-constants-1.14.jar;lib\batik-css-1.14.jar;lib\batik-dom-1.14.jar;lib\batik-ext-1.14.jar;lib\batik-gvt-1.14.jar;lib\batik-i18n-1.14.jar;lib\batik-js-1.8.jar;lib\batik-parser-1.14.jar;lib\batik-script-1.14.jar;lib\batik-shared-resources-1.14.jar;lib\batik-svg-dom-1.14.jar;lib\batik-svggen-1.14.jar;lib\batik-transcoder-1.14.jar;lib\batik-util-1.14.jar;lib\batik-xml-1.14.jar;lib\beansbinding-1.2.1.jar;lib\bluecove-2.1.1-SNAPSHOT.jar;lib\bluecove-bluez-2.1.1-SNAPSHOT.jar;lib\bluecove-gpl-2.1.1-SNAPSHOT.jar;lib\commons-compress-1.18.jar;lib\commons-csv-1.9.0.jar;lib\commons-io-2.11.0.jar;lib\commons-lang3-3.7.jar;lib\commons-logging-1.2.jar;lib\commons-net-3.9.0.jar;lib\commons-text-1.2.jar;lib\gluegen-rt.jar;lib\hid4java-0.5.0.jar;lib\jackson-annotations-2.13.4.jar;lib\jackson-core-2.13.4.jar;lib\jackson-databind-2.13.4.1.jar;lib\JavaVersionCheckWindow.jar;lib\javax.servlet-api-3.1.0.jar;lib\jdom2-2.0.6.jar;lib\jetty-http-9.4.28.v20200408.jar;lib\jetty-io-9.4.28.v20200408.jar;lib\jetty-security-9.4.28.v20200408.jar;lib\jetty-server-9.4.28.v20200408.jar;lib\jetty-servlet-9.4.28.v20200408.jar;lib\jetty-util-9.4.28.v20200408.jar;lib\jhall.jar;lib\jhidrawplugin.jar;lib\jinput.jar;lib\jinputvalidator-0.8.0.jar;lib\jlfgr-1_0.jar;lib\jmdns-3.5.5.jar;lib\jmri.script.jsr223graalpython.jar;lib\jna-5.9.0.jar;lib\jna-platform-5.9.0.jar;lib\joal.jar;lib\json-schema-validator-1.0.28.jar;lib\jsoup-1.15.3.jar;lib\jsplitbutton-1.3.1.jar;lib\jul-to-slf4j-1.7.25.jar;lib\jython-standalone-2.7.2.jar;lib\libusb4java-1.3.0-darwin-aarch64.jar;lib\libusb4java-1.3.0-darwin-x86-64.jar;lib\libusb4java-1.3.0-linux-aarch64.jar;lib\libusb4java-1.3.0-linux-arm.jar;lib\libusb4java-1.3.0-linux-x86-64.jar;lib\libusb4java-1.3.0-linux-x86.jar;lib\libusb4java-1.3.0-win32-x86-64.jar;lib\libusb4java-1.3.0-win32-x86.jar;lib\log4j-1.2.17.jar;lib\mailapi.jar;lib\openlcb.jar;lib\org-openide-util-lookup-RELEASE150.jar;lib\org.eclipse.paho.client.mqttv3-1.2.5.jar;lib\pi4j-core-1.2.jar;lib\purejavacomm-1.0.5.jar;lib\slf4j-api-1.7.25.jar;lib\slf4j-log4j12-1.7.25.jar;lib\thumbnailator-0.4.8.jar;lib\usb-api-1.0.2.jar;lib\usb4java-1.3.0.jar;lib\usb4java-javax-1.3.0.jar;lib\vecmath-1.5.2.jar;lib\websocket-api-9.4.28.v20200408.jar;lib\websocket-client-9.4.28.v20200408.jar;lib\websocket-common-9.4.28.v20200408.jar;lib\websocket-server-9.4.28.v20200408.jar;lib\websocket-servlet-9.4.28.v20200408.jar;lib\xAPlib.jar;lib\xbee-java-library-1.3.1.jar;lib\xercesImpl-2.12.2.jar;lib\xml-apis-ext-1.3.04.jar;lib\xmlgraphics-commons-2.6.jar" apps.PanelPro.PanelPro?


 

Steve G (and all) thanks for the assist. Unfortunately that did not work for me.

The problem seemed to stem from the user account PATH.. so I just nuked the account and started fresh.

I am now able to start JMRI from both accounts as before. Perhaps when I tried to update Java (or perhaps having Azul and Oracle installed) was the problem.


Mark


 

On Sat, Apr 29, 2023 at 09:25 PM, Mark Ziebell wrote:
Perhaps when I tried to update Java (or perhaps having Azul and Oracle installed) was the problem.
Mark yes.
I ran into a problem, not manifested in the same way.
Oracle was sitting there unbeknownst to me.
Oracle uninstall app solved my problem.
?
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
[DB150][PR3][QuadLN_S][JMRI 5.3.5]