Forums: Does Such A Java Programm Exists - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Does Such A Java Programm Exists that downloads and executes .exe fil

#1 Guest_Shapeshifter_*

  • Group: Guests

Posted 25 August 2005 - 09:37 AM

I am in need of a java programm that that downloads and executes an .exe file from the web. Does something like that exist?

Shape
0

#2 User is offline   brOmstar 

  • Sergeant First Class
  • Icon
  • Group: Members
  • Posts: 353
  • Joined: 12-January 04

Posted 25 August 2005 - 09:39 AM

Sure ...but why java?
0

#3 Guest_Shapeshifter_*

  • Group: Guests

Posted 01 September 2005 - 07:04 AM

Because there is a type of machine that only runs java :D

Can you give me that java programm?
0

#4 User is offline   skiddieleet 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 74
  • Joined: 15-November 04

Posted 17 September 2005 - 05:28 PM

Are you trying to find a program for a phone or something that downloads a trojan or some other malware? tsk tsk. I don't think it would be that hard to write a program to do that, but if you are wanting it for the reason I think you are why? Otherwise I assume you want something for yourself to download and install programs or something.
http://java.sun.com/...1.5.0/docs/api/
0

#5 User is offline   NiteWorM 

  • Corporal
  • Icon
  • Group: Members
  • Posts: 161
  • Joined: 19-December 03

Posted 17 September 2005 - 11:35 PM

Quote

I am in need of a java programm that that downloads and executes an .exe file from the web. Does something like that exist?

Shape

Quote

Because there is a type of machine that only runs java

Can you give me that java programm?


i pose a question, if the system only runs java then why do you want to download an exe file since you wouldnt be able to execute it.
0

#6 User is offline   Princey 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 55
  • Joined: 22-August 05

Posted 18 September 2005 - 09:46 AM

NiteWorM, on Sep 18 2005, 07:35 AM, said:

Quote

I am in need of a java programm that that downloads and executes an .exe file from the web. Does something like that exist?

Shape

Quote

Because there is a type of machine that only runs java

Can you give me that java programm?


i pose a question, if the system only runs java then why do you want to download an exe file since you wouldnt be able to execute it.


LOL good question, maybe it was a not very well put example :rolleyes:
0

#7 User is offline   unsafe_pilot1 

  • Private
  • Icon
  • Group: Members
  • Posts: 6
  • Joined: 04-November 05

Posted 05 November 2005 - 12:37 PM

Hi every1 B) !

I wanna tell something about java.....java is the best language out there when it comes to security... and microsoft copied it's security feature and labelled a new language C# that is 70% java and mix of other things from other languages and some new features also.

BUT WHY THE H ELL U WANNA USE JAVA
A)IT NEEDS FIRST OF ALL


So u want to run and .exe file in java well here it is-

import javax.swing.*;
import java.awt.event.*;

public class testinghyper1
{
JButton b1;
public testinghyper1()
{
JFrame f=new JFrame("This program needs JDK!");
b1=new JButton("click me!");
b1.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
try{
Runtime.getRuntime().exec("explorer http://www.google.com.my");
//to open notepad use
//........exec("notepad");
//to open calculator use
//.....exec("explor

Hi every1 B) !

I wanna tell something about java.....java is the best language out there when it comes to security... and microsoft copied it's security feature and labelled a new language C# that is 70% java and mix of other things from other languages and some new features also.

BUT WHY THE H ELL U WANNA USE JAVA
A)IT NEEDS FIRST OF ALL IT NEEDS java runtime enviroment
B)U CAN ONLY INVOKE IT BY USING
java <filename>

But there is a way to convert ur java files to .exe go to www.towerj.com and download the software that can convert ur java files to .exe.

So i have solved all ur problems.


So u want to run and .exe file in java well here it is-

import javax.swing.*;
import java.awt.event.*;

public class testinghyper1
{
JButton b1;
public testinghyper1()
{
JFrame f=new JFrame("This program needs JDK!");
b1=new JButton("click me!");
b1.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
try{
Runtime.getRuntime().exec("explorer http://www.google.com.my");
//to open notepad use
//........exec("notepad");
//to open calculator use
//.....exec("explorer C:\\WINDOWS\\system32\\calc.exe");
//and similarly use can invoke anyfile in the pc.just speacify the path.
}
catch(Exception g){}
}});
f.getContentPane().add(b1);
f.pack();
f.setVisible(true);
}
public static void main(String args[])
{
new testinghyper1();
}
}

okay!
Now u said u also need to connect to the web use the
import java.net.*; //package!
sorry bro! time's up i got to go don't hav much time!
lol!
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting