How to correctly read from JarURLInputStream ? (Java)
I’m trying to read the contents of my own JAR.
Unable to access jarfile CalculatorTest.jar
I wrote a project in Java that contains one class called Calculator.java, a test page called CalculatorTest.java and a pom.xml page. I try to run my project on Docker but it gives me the error:
how can I open a jar file in notepad? It does not seem to want to open without being unreadable
How can I open a jar
file in notepad? I don’t know/work with Java but I need to try and understand what is going on.
JAR file cannot find main class
I’m trying to build my project into an executable JAR file. Since I was having problems I reduced the structure to a very simple one.
can anyone help i’m trying to add .jar library but it’s not working
i’ve been trying to run this code but it will always give me error messages
enter image description here
this is my java project folder i added the lib folder to my classpath
Why is my java.exe not opening jar files?
When I try running the forge jar installer file, it prompts me to open it with java.exe, which I just installed today. When I select the java.exe file, it opens immediately and then closes immediately. I’ve tried running the enable preview in Command Prompt, but the error message is just that it’s unable to access the jar file.
Cannot get Jodin3 to launch
wanted to flash custom rom to my Galaxy S7, I could install Heimdall successfully, and in download mode the device gets detected but JOdin3CASUAL.rar file cannot be opened, sometimes it says,
I have a project from netbean jdk21 but when exporting the jar file it has the following error
Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at qlsv_swing.qlsv.func.StudentFunc.readListStudents(StudentFunc.java:52)
at qlsv_swing.qlsv.func.StudentFunc.(StudentFunc.java:23)
at qlsv_swing.qlsv.controller.StudentController.(StudentController.java:24)
at qlsv_swing.qlsv.controller.LoginController$LoginListener.actionPerformed(LoginController.java:37)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2314)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:407)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6621)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398)
at java.desktop/java.awt.Component.processEvent(Component.java:6386)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4996)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
… 39 more