process in java(question)

  • (2 Pages)
  • +
  • 1
  • 2

15 Replies - 1080 Views - Last Post: 26 June 2010 - 12:36 AM Rate Topic: -----

#1 majid69  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 01-January 10

process in java(question)

Posted 24 June 2010 - 12:27 AM

hi
how can create a process in java?
how can create a active process in window in java?
i mean,how can make a application a process in window written in java?
i wanna have application that start with start of windows and end with shut down windows or i end it.
Is This A Good Question/Topic? 0
  • +

Replies To: process in java(question)

#2 aniri  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 54
  • View blog
  • Posts: 657
  • Joined: 24-November 09

Re: process in java(question)

Posted 24 June 2010 - 01:31 AM

Maybe some tutorials about threads in java and creatings GUIs might be a good start.
Was This Post Helpful? 0
  • +
  • -

#3 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2640
  • View blog
  • Posts: 11,155
  • Joined: 20-September 08

Re: process in java(question)

Posted 24 June 2010 - 01:40 AM

Quote

i wanna have application that start with start of windows and end with shut down windows or i end it.


http://wrapper.tanuk...sh/download.jsp
Was This Post Helpful? 0
  • +
  • -

#4 Krishs  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 23
  • View blog
  • Posts: 105
  • Joined: 06-April 10

Re: process in java(question)

Posted 24 June 2010 - 02:43 AM

View Postmajid69, on 24 June 2010 - 11:57 AM, said:

hi
how can create a process in java?
how can create a active process in window in java?
i mean,how can make a application a process in window written in java?
i wanna have application that start with start of windows and end with shut down windows or i end it.


java.lang.Process , java.lang.Runtime

or

JNI
Was This Post Helpful? 0
  • +
  • -

#5 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10364
  • View blog
  • Posts: 38,390
  • Joined: 27-December 08

Re: process in java(question)

Posted 24 June 2010 - 03:45 PM

Quote

i wanna have application that start with start of windows and end with shut down windows or i end it.

You'd have to use a batch file or something similar for this. I think there is software you can download that will allow you to manage automatic processes like you are describing.
Was This Post Helpful? 0
  • +
  • -

#6 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8324
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: process in java(question)

Posted 24 June 2010 - 03:47 PM

View Postmajid69, on 24 June 2010 - 01:27 AM, said:

hi
how can create a process in java?
how can create a active process in window in java?
i mean,how can make a application a process in window written in java?
i wanna have application that start with start of windows and end with shut down windows or i end it.

In your terminology:
- what is a process ?
- what is an active process and what is the difference between a process and a active process ?
- what is the difference between a window application and a process what a window application should have to become a "process" according to your terminology ?
Was This Post Helpful? 0
  • +
  • -

#7 Handler  Icon User is offline

  • D.I.C Head

Reputation: 15
  • View blog
  • Posts: 199
  • Joined: 01-April 10

Re: process in java(question)

Posted 24 June 2010 - 05:47 PM

i think what he wants to do is start up his program when windows starts. which is more of a windows questions than a java question.

as for it being a process i think he doesnt want it to show up in the application list only the processes list in windows task manager.

majid69 is this what you meant?

Edit: typo

This post has been edited by Handler: 24 June 2010 - 05:47 PM

Was This Post Helpful? 0
  • +
  • -

#8 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8324
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: process in java(question)

Posted 24 June 2010 - 09:13 PM

View PostHandler, on 24 June 2010 - 06:47 PM, said:

i think what he wants to do is start up his program when windows starts. which is more of a windows questions than a java question.

A .bat file in the startup folder will do the job
Was This Post Helpful? 0
  • +
  • -

#9 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10364
  • View blog
  • Posts: 38,390
  • Joined: 27-December 08

Re: process in java(question)

Posted 24 June 2010 - 09:14 PM

View Postmacosxnerd101, on 24 June 2010 - 06:45 PM, said:

Quote

i wanna have application that start with start of windows and end with shut down windows or i end it.

You'd have to use a batch file or something similar for this. I think there is software you can download that will allow you to manage automatic processes like you are describing.

Great minds think alike. :bigsmile:
Was This Post Helpful? 1
  • +
  • -

#10 majid69  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 01-January 10

Re: process in java(question)

Posted 25 June 2010 - 10:22 AM

View PostHandler, on 24 June 2010 - 04:47 PM, said:

i think what he wants to do is start up his program when windows starts. which is more of a windows questions than a java question.

as for it being a process i think he doesnt want it to show up in the application list only the processes list in windows task manager.

majid69 is this what you meant?

Edit: typo

thanks from all you.
exactly i meant this.
i wanna have process in window task manager.like an antivirus program that always is run that is working and check the system
i wanna application that for example when flash memory plug in application understand and do somethings.
active process,i've meant process in task manager :D
my english is a litle weak and...
i've graduated from english class over 2 years and i'm forgetting all i've studied :D

oh,i forgot,in process and subject like this, i'm a zero,maybe under zero :D
please if you can explain it in detail,thank you,ladies and gentlemen :D
Was This Post Helpful? 0
  • +
  • -

#11 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2640
  • View blog
  • Posts: 11,155
  • Joined: 20-September 08

Re: process in java(question)

Posted 25 June 2010 - 10:55 AM

Quote

i wanna have process in window task manager.like an antivirus program that always is run that is working and check the system


That's a Windows service. See my link above
Was This Post Helpful? 0
  • +
  • -

#12 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8324
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: process in java(question)

Posted 25 June 2010 - 06:36 PM

View Postmajid69, on 25 June 2010 - 11:22 AM, said:

i wanna have process in window task manager.like an antivirus program that always is run that is working and check the system
i wanna application that for example when flash memory plug in application understand and do somethings.
active process,i've meant process in task manager

Java is NOT the language for that. That implies too much native system methods and hooks
But at least using g00se advice you can start your Java application at System boot time
After that, how you will track the events, is a whole different story :)
Good luck and happy coding
Was This Post Helpful? 0
  • +
  • -

#13 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2640
  • View blog
  • Posts: 11,155
  • Joined: 20-September 08

Re: process in java(question)

Posted 26 June 2010 - 12:05 AM

Quote

After that, how you will track the events, is a whole different story :)


I'm not sure, but it's possible that the Tanuki wrapper can write to the Event Log
Was This Post Helpful? 0
  • +
  • -

#14 majid69  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 01-January 10

Re: process in java(question)

Posted 26 June 2010 - 12:29 AM

thank you.I try it out. :smile2:
could you give me a source about it?
a simple source :D
Was This Post Helpful? 0
  • +
  • -

#15 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2640
  • View blog
  • Posts: 11,155
  • Joined: 20-September 08

Re: process in java(question)

Posted 26 June 2010 - 12:33 AM

There's example code in the download
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2