Solved

Java class file to EXE FILE

Posted on 2002-07-11
2
416 Views
Last Modified: 2012-05-04
How could i build the java class file to EXE FILE?




import java.io.*;
 class readblood
 {
 public static void main(String args[])  throws Exception
 {
   BufferedReader buffereader=new BufferedReader(new FileReader("data1.txt"));
   
   String instring;
   String text="";
   String outstring="";
   int iRow=1;
   int iIndex=0;
   char cTemp;
   
   while ((instring=buffereader.readLine())!=null)
    {
         text=text+instring;
    }
   
   buffereader.close();

  cTemp=text.charAt(iIndex) ;
  while(iIndex<text.length())
   {
        cTemp=text.charAt(iIndex);
 
   switch (cTemp)
   {
        case '' :
                outstring=outstring+"\n‘æ"+iRow+"‘g:";
                iRow++;
                break;
       
        case '' :
                outstring=outstring+(char) 13;
                break;
         default  :
                outstring=outstring+cTemp;
                break;
  }
        iIndex++;
   }
          FileWriter filewriter=new FileWriter("micky2.txt");
          filewriter.write(outstring);
          filewriter.close();
     }
  }


0
Comment
Question by:mismicky
2 Comments
 
LVL 9

Accepted Solution

by:
Ovi earned 50 total points
ID: 7148421
0
 
LVL 35

Expert Comment

by:girionis
ID: 8917277
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- points to Ovi

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JUnit 4 @Before and @BeforeClass differences 3 48
simple java question 3 44
jar file executable 12 43
eclipse apache tomcat admin console 52 73
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now