Hi everyone! I hope you are doing great
I'm new to both, the forum and JAVA. It's been three or four days since I've started programming in this language (I know C and C++ btw), so I'm a noob/beginner/you name it.
So far, I've learnt how to make graphic applications among other basic staff. The thing is, I've created a program, A VERY BASIC PROGRAM that does simple math calculations and displays the results in a field text. Fortunately, it works pretty well... Buuuuuuuuuuuut if I build it (using netbeans), and try to run it in another computer, a message pops up saying what the title says... How did I solve this? By installing JDK in every single one.
There must be a way to make it work without installing the JDK, but I just don't know how :C Please, I beg you, try to explain me how and as detailed as possible.
Thanks in advance! and sorry if there are too many grammar mistakes, I'm not a native speaker.
--- Update ---
This pops up:
Exception in thread "main" java.lang.NoClassDefFoundError: Calculadora_Porcenta
es/jar
Caused by: java.lang.ClassNotFoundException: Calculadora_Porcentajes.jar
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: Calculadora_Porcentajes.jar. Program will exit.
And this is my manifest:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.2
Created-By: 1.8.0_11-b12 (Oracle Corporation)
Class-Path:
X-COMMENT: Main-Class will be added automatically by build
Main-Class: calculadora_porcentajes.Calculadora_Porcentajes