Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

JAVA on WINDOWS

K
kll Posted 6 months agoWindows
i used JAVA only indirectly like with
PROCESSING
or first
ARDUINO IDE
but now i want setup my win 10 PC to do some JAVA APP development.

i do have
VSCode installed VSCode
that can be used for JAVA
java-tutorial
get JavaCodingPack-0.4.2.exe
and help install
OpenJDK17U-jdk_x64_windows_hotspot_17.0.14_7.msi ( yes choose older version )


VSCode_JAVA_1.png

VSCode_JAVA_2.png

java_inst_1.png

java_inst_2.png

now make your first Project
-a- make a directory
-b- VSCode run > ( search field click down 'Schow and run Commands' click )
JAVA create JAVA Project click
no build tools click
give directory and example project is setup
run that App.java file and see in terminal:

VSCode_JAVA_3.png



LINUX:
on linux i start from opening VSCode
open EXTENSIONs
search
EXTENSION PACK for JAVA
install

on linux terminal
sudo apt install -y openjdk-17-jre-headless
reboot





now to make it a executable first need:
Video Tutorial

https://launch4j.sourceforge.net/
make launch4j.config
run and get .exe
( but still need JRE installed )



so even now we have a windows .exe, question is how to ship it?
following that same video tutorial:

install / need:
7-zip www.7-zip.org/
+ pack JRE and App.exe

7-zip SFX sourceforge.net/projects/sfx-maker/
+ run as Administrator
+ point to that 7-zip ( of JRE and App.exe )
+ add a Task to run program at start ( and point to App.exe )
+ temporary extraction path AND NOT allow user to change path
so it just starts after extraction