Click here to Skip to main content
15,893,588 members
Home / Discussions / Java
   

Java

 
GeneralRe: Can you create a Windows desktop program with Java Pin
Richard MacCutchan21-Feb-19 21:42
mveRichard MacCutchan21-Feb-19 21:42 
GeneralRe: Can you create a Windows desktop program with Java Pin
Dhananjay Panage1-Mar-19 11:07
Dhananjay Panage1-Mar-19 11:07 
GeneralRe: Can you create a Windows desktop program with Java Pin
Brian_TheLion1-Mar-19 12:13
Brian_TheLion1-Mar-19 12:13 
GeneralRe: Can you create a Windows desktop program with Java Pin
Richard MacCutchan1-Mar-19 22:07
mveRichard MacCutchan1-Mar-19 22:07 
GeneralRe: Can you create a Windows desktop program with Java Pin
Brian_TheLion2-Mar-19 11:39
Brian_TheLion2-Mar-19 11:39 
GeneralRe: Can you create a Windows desktop program with Java Pin
Richard MacCutchan2-Mar-19 21:32
mveRichard MacCutchan2-Mar-19 21:32 
GeneralRe: Can you create a Windows desktop program with Java Pin
Brian_TheLion3-Mar-19 19:51
Brian_TheLion3-Mar-19 19:51 
AnswerRe: Can you create a Windows desktop program with Java Pin
jschell23-Feb-19 10:50
jschell23-Feb-19 10:50 
Member 14154627 wrote:
I'd like to create a program that has an icon I can put on my Windows desktop and click on it to run the program.


Ok.

Member 14154627 wrote:
Is this possible with JAVA?


I doubt it.

Mainly because of the way windows locks down installing anything on windows. But easy enough to try.
1. Create java app
2. Have it create folder in "Program Files"
3. Have it create a shortcut and put it into desktop folder. The shortcut is just a simple file and you do not even need to create one, just copy one from somewhere else.
4. Run it as ADMIN (very important.)

If that works then yes. If not then you would probably need to do some JNI work which isn't really Java.

Member 14154627 wrote:
The only way I know to run a JAVA program is java -cp . programname


You can package a java jar such that it is 'clickable'.

HOWEVER, to do any of the above java must already be on the windows box. At least at one point java was coming with windows but I am not sure about that any more. Installing java itself cannot be done within java (chicken and egg.)
QuestionJAVA terrier API Pin
Member 1180560717-Feb-19 2:12
Member 1180560717-Feb-19 2:12 
SuggestionRe: JAVA terrier API Pin
Richard MacCutchan17-Feb-19 2:55
mveRichard MacCutchan17-Feb-19 2:55 
QuestionServlet code protection [SOLVED] Pin
Valentinor11-Feb-19 2:09
Valentinor11-Feb-19 2:09 
AnswerRe: Servlet code protection Pin
Richard MacCutchan11-Feb-19 3:00
mveRichard MacCutchan11-Feb-19 3:00 
GeneralRe: Servlet code protection Pin
Valentinor13-Feb-19 1:43
Valentinor13-Feb-19 1:43 
AnswerRe: Servlet code protection Pin
Richard Deeming11-Feb-19 3:02
mveRichard Deeming11-Feb-19 3:02 
GeneralRe: Servlet code protection Pin
Valentinor13-Feb-19 1:46
Valentinor13-Feb-19 1:46 
GeneralRe: Servlet code protection Pin
jschell17-Feb-19 6:19
jschell17-Feb-19 6:19 
GeneralRe: Servlet code protection Pin
Valentinor17-Feb-19 10:45
Valentinor17-Feb-19 10:45 
QuestionJava project Pin
Member 1413367029-Jan-19 4:36
Member 1413367029-Jan-19 4:36 
AnswerRe: Java project Pin
Richard MacCutchan29-Jan-19 4:44
mveRichard MacCutchan29-Jan-19 4:44 
AnswerRe: Java project Pin
jschell2-Feb-19 6:18
jschell2-Feb-19 6:18 
QuestionJava Code too large Pin
mozum15-Jan-19 22:51
mozum15-Jan-19 22:51 
SuggestionRe: Java Code too large Pin
Richard MacCutchan15-Jan-19 23:04
mveRichard MacCutchan15-Jan-19 23:04 
GeneralRe: Java Code too large Pin
mozum15-Jan-19 23:28
mozum15-Jan-19 23:28 
GeneralRe: Java Code too large Pin
Richard MacCutchan15-Jan-19 23:36
mveRichard MacCutchan15-Jan-19 23:36 
GeneralRe: Java Code too large Pin
mozum15-Jan-19 23:54
mozum15-Jan-19 23:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.