100% Pure Java Program

I have seen that the 100% Pure Java Program has "completed the Sun End of Life process and it is no longer supported by Sun" (see http://java.sun.com/100percent/).
Can anyone explain to me why is this, and what alternatives do we have now to be Java Certified (if any)?
Thanks.

It's disturbing but probably not end of the world.
I like this:
"Any use of product on this page is at the sole discretion of the developer and Sun assumes no responsiblity for any resulting problems."
Do they mean that jdk 1.4 is bugless and they are resposible for any problems if something happens?
I do not think so.

Similar Messages

  • Is Eclipse a 100% pure Java program?

    Is Eclipse a 100% pure Java program?

    Eclipse runs on linux, windows, MAc OS X and I think a few others. It has native widgets via SWT for those platforms using the native OS Look and Feel. It is smoother than Swing in most ways, yet Swing does have some advantages as well. SWT is a nice kit. It would be nice if the Swing Team took the idea of building a cross platform native GUI kit into the AWT/Swing layer so that Swing was even faster. I think Swing and SWT are great, only I wish Swing had provided what SWT does (in some ways) so that Swing would have been used and SWT never written. It's a shame, but then again, perhaps it promotes the Swing Team to make Swing better/faster.
    Look at Swing on Mac OS X, it is very nice, looks like native OS (because Apple wrote their own L&F for Mac OS X Only), but it is faster than Swing on Windows/Linux.

  • Where is the "100% Pure Java Check" ?

    Dear friends,
    few years ago we had a very popular application called 100% Pure Java Checker.. a tool used to verify the portabiliy of Swing Programs...
    is there something similar nowadays ?
    where ?

    JavaPureCheck has completed the Sun EOL process and is no longer supported.

  • 100 % Pure Java Certification !!!

    I have a product developed in Java 2. The product is developed entirely in Java and is platform independent. I want to go in for the 100 % Pure Java Certification from Sun Microsystems. Can someone let me know how to go about getting this certification.
    Thanks a lot in advance.
    chet888

    Hi, here is something that I have found very useful..
    http://cramsession.brainbuzz.com/cramsession/sun/java2
    Let me know if you need any more information..Hi Geetanjali,
    Well your site does not mention anything about product certification, it only talks about Sun Certification of Progammers. If you have any idea about product certification, please let me know asap.

  • 100% pure Java

    Does Sun have to formally authenticate one's code as 100% pure Java or is this purely an informal tag that the developer uses to show people it will run on any platform.
    Ta

    Its not possible to write a 100% pure usfull java project (meaning a project with
    some form of input or output), but the code is not system dependent. what? Java was written to provides cross platform compatitable. ou can write useful application that is 100% pure Java and is not System dependant.
    look at the Java API...it's prett abstract from the operating system. Of course, thee are libraries (3rd party) that aimed at a specific OS (such as Jakarta POI library)

  • How to create a setup.exe from a pure java program

    i have some program using pure Java Swing.... i already created jar files to make it executable everytime you click on the icon... but i want to create a installer type like setup.exe just like in VB....
    How on earth can I do that?!?
    Thanks!

    This is one...
    http://www.excelsior-usa.com/jet.html
    And there are a lot more like jexe n stuff.
    But look out. Only some convert it to pure native
    form. The rest are only launchers - you would still
    need a JRE to run yer program.
    extremely sorry. Didnt read the post properly .Sorry

  • 3D environment in pure java programming

    hi all,
    my problem is dat...
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    </applet code="project1" width=1024 height=768>
    </applet>
    public class project1 extends Frame implements ActionListener , MouseListener {
         deathscreen screen=new deathscreen();
         int choice;
         project1(){
              super("3D-Image Processor");
              setSize(1026,768);
              setVisible(true);
              setResizable(true);
              addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent we){System.exit(0);}});
              addMouseListener(this);
    //MENU BAR----------------------------------------------------------------------------------------------------------
              MenuBar mbar=new MenuBar();
              setMenuBar(mbar);
              Menu file=new Menu("File");
              MenuItem item1,item2,item3,item4;
              file.add(item1=new MenuItem("New...."));
              file.add(item2=new MenuItem("Open..."));
              file.add(item3=new MenuItem("-"));
              file.add(item4=new MenuItem("Close.."));
              mbar.add(file);
              Menu edit=new Menu("Edit");
              MenuItem item5,item6,item7;
              edit.add(item5=new MenuItem("Cut...."));
              edit.add(item6=new MenuItem("Copy..."));
              edit.add(item7=new MenuItem("Paste.."));
              mbar.add(edit);
              Menu components=new Menu("Components");
              MenuItem item9,item10;
              components.add(item9=new MenuItem("Canvas............"));
              components.add(item10=new MenuItem("General Properties"));
              mbar.add(components);
              Menu help=new Menu("Help");
              MenuItem item11=new MenuItem("Help...");
              help.add(item11);
              mbar.add(help);
              //MyMenuHandler handler=new MyMenuHandler(this);
              item1.addActionListener(this);
              item2.addActionListener(this);
              item3.addActionListener(this);
              item4.addActionListener(this);
              item5.addActionListener(this);
              item6.addActionListener(this);
              item7.addActionListener(this);
    //Item8 destroyed(Component class removed)
              item9.addActionListener(this);
              item10.addActionListener(this);
              item11.addActionListener(this);
    //CALL OF INDIVIDUAL COMPONENTS------------------------------------------------------------------------------          
              screen.setVisible(true);
              screen.setResizable(true);
         public static void main(String args[]){
              new project1();
         public void paint(Graphics g){
              setBackground(Color.gray);
         public void actionPerformed(ActionEvent e){
              if(e.getActionCommand()=="Close.."){
                   System.exit(0);
              if(e.getActionCommand()=="Canvas............"){
                   screen.setVisible(true);
              if(e.getActionCommand()=="General Properties"){
                   screen.gen.setVisible(true);
    //MOUSE COMPONENTS---------------------------------------------------------------------------------------------
         public void mouseClicked(MouseEvent me){
              screen.setVisible(true);
              screen.gen.setVisible(true);
         public void mouseEntered(MouseEvent me){}
         public void mouseExited(MouseEvent me){}
         public void mousePressed(MouseEvent me){}
         public void mouseReleased(MouseEvent me){}
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.io.*;
    class genproperties extends Frame implements AdjustmentListener,ActionListener{
         Scrollbar red;
         Scrollbar blue;
         Scrollbar green;
         Canvas colour;
         Label r;
         Label g;
         Label b;
         Scrollbar thickness;
         Scrollbar height;
         Label th;
         Label he;
         Button SelectRect;
         Button SelectPoly;
         Button DrawRect;
         Button DrawPoly;
         Button DrawCircle;
         Button DrawLine;
         Button Pencil;
         Button Plotter;
         FileOutputStream temp;     
         int choice=0,i=0;
    int props[][]=new int[1000][40],fin;
    /*     props--->     0=choice of draw item
                   1=red
                   2=blue
                   3=green
                   4=thickness
                   5=height
                   6=x1     |
                   7=y1     | of the chosen
                   8=x2     | component
                   9=y2     |
         genproperties(){
              super("General Properties");
              try{
              temp = new FileOutputStream("Z:\temp.txt");
              }catch(FileNotFoundException _ex){}
              setSize(270,695);
              setLocation(10,45);
              setResizable(false);
              setLayout(null);//new FlowLayout());
              setBackground(Color.gray);
    //GENERAL PROPERTIES OF ALL DRAWING COMPONENTS <LOOKS>-------------------
    //Color of individual components
              red=new Scrollbar(Scrollbar.HORIZONTAL,0,1,0,256);
              blue=new Scrollbar(Scrollbar.HORIZONTAL,0,1,0,256);
              green=new Scrollbar(Scrollbar.HORIZONTAL,0,1,0,256);
              Label lc=new Label("CHOSEN COLOR",Label.CENTER);
    //thickness and height of individual components
              thickness=new Scrollbar(Scrollbar.HORIZONTAL,0,1,1,6);
              height=new Scrollbar(Scrollbar.HORIZONTAL,0,1,0,256);
              th=new Label("Thickness=0");
              he=new Label("Height=0");
    //Individual components
              SelectRect=new Button("Select Rectangle");
              SelectPoly=new Button("Select Polygon");
              DrawRect=new Button("Rectangle");
              DrawPoly=new Button("Polygon");
              DrawCircle=new Button("Circle");
              DrawLine=new Button("Line");
              Pencil=new Button("Pencil");
              Plotter=new Button("Plotter");
              r=new Label("RED=0");
              g=new Label("BLUE=0");
              b=new Label("GREEN=0");
              colour=new Canvas();
              red.setBounds(5,50,256,15);
              blue.setBounds(5,100,256,15);
              green.setBounds(5,150,256,15);
              colour.setBounds(50,210,170,100);
              lc.setBounds(50,330,170,30);
              r.setBounds(80,70,70,20);
              b.setBounds(77,120,70,20);
              g.setBounds(75,170,75,20);
              thickness.setBounds(30,380,200,15);
              height.setBounds(5,430,256,15);
              th.setBounds(80,400,100,20);
              he.setBounds(90,450,100,20);
    //Chosen color display
              colour.setBackground(Color.black);
              r.setBackground(Color.gray);
              b.setBackground(Color.gray);
              g.setBackground(Color.gray);
              SelectRect.setBounds(20,500,100,30);
              SelectPoly.setBounds(150,500,100,30);
              DrawLine.setBounds(20,530,100,30);
              DrawRect.setBounds(150,530,100,30);
              DrawPoly.setBounds(20,560,100,30);
              DrawCircle.setBounds(150,560,100,30);
              Pencil.setBounds(20,590,100,30);
              Plotter.setBounds(150,590,100,30);
              add(red);
              add(blue);
              add(green);
              add(colour);
              add(lc);
              add(r);
              add(g);
              add(b);
              add(thickness);
              add(th);
              add(height);
              add(he);
              add(SelectRect);
              add(SelectPoly);
              add(DrawLine);
              add(DrawRect);
              add(DrawPoly);
              add(DrawCircle);
              add(Pencil);
              add(Plotter);
              thickness.addAdjustmentListener(this);
              height.addAdjustmentListener(this);
              //colour.setBackground(Color.red);
              red.addAdjustmentListener(this);
              blue.addAdjustmentListener(this);
              green.addAdjustmentListener(this);
              SelectRect.addActionListener(this);
              SelectPoly.addActionListener(this);
              DrawLine.addActionListener(this);
              DrawRect.addActionListener(this);
              DrawPoly.addActionListener(this);
              DrawCircle.addActionListener(this);
              Pencil.addActionListener(this);
              Plotter.addActionListener(this);
    //To escape array from getting into nullpointer exception.....
              /*int j=0;
              for(i=0;i<1000;i++){
                   for(j=0;j<6;j++){
                        props[i][j]=0;
         public void paint(Graphics g){
              setBackground(Color.gray);
              g.setColor(Color.black);
              g.fillRect(40,200,190,120);
         public void adjustmentValueChanged(AdjustmentEvent ae){
              colour.setBackground(new Color(red.getValue(),green.getValue(),blue.getValue()));
              r.setText("RED="+new Integer(red.getValue()).toString());          
              b.setText("BLUE="+new Integer(blue.getValue()).toString());          
              g.setText("GREEN="+new Integer(green.getValue()).toString());     
              th.setText("Thickness="+new Integer(thickness.getValue()).toString());
              he.setText("Height="+new Integer(height.getValue()).toString());
    //Array props being initialized to store attribute values of
    //individual components to feed into file for later use......
              props[1]=red.getValue();
              props[i][2]=blue.getValue();
              props[i][3]=green.getValue();
              props[i][4]=thickness.getValue();
              props[i][5]=height.getValue();
              //System.out.println("Ch:"+props[i][0]+" R:"+props[i][1]+" B:"+props[i][2]+" G:"+props[i][3]+" Th:"+props[i][4]+" He:"+props[i][5]+" i:"+i);
         public void actionPerformed(ActionEvent e){
              if(e.getActionCommand()=="Pencil"){
                   i=++i;
                   choice=7;
              if(e.getActionCommand()=="Line"){
                   choice=6;
                   i=++i;
              if(e.getActionCommand()=="Circle"){
                   choice=5;
                   i=++i;
              if(e.getActionCommand()=="Polygon"){
                   choice=4;
                   i=++i;
              if(e.getActionCommand()=="Rectangle"){
                   choice=3;
                   i=++i;
              if(e.getActionCommand()=="Select Polygon"){
                   choice=2;
                   i=++i;
              if(e.getActionCommand()=="Select Rectangle"){
                   choice=1;
                   i=++i;
              if(e.getActionCommand()=="Plotter"){
                   choice=0;
                   i=++i;
              /*try{
                   temp.write(props[i][0]);
                   temp.write(props[i][1]);
                   temp.write(props[i][2]);
                   temp.write(props[i][3]);
                   temp.write(props[i][4]);
                   temp.write(props[i][5]);
                   temp.close();
              }catch(IOException _ex){}*/
              props[i][0]=choice;
              props[i][1]=red.getValue();
              props[i][2]=blue.getValue();
              props[i][3]=green.getValue();
              fin=i;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.io.*;
    import java.lang.Math;
    public class deathscreen extends Frame implements MouseListener,MouseMotionListener{
         int x1=0,x2=0,y1=0,y2=0;
         genproperties gen=new genproperties();
         int xtemp=0,ytemp=0;
         //boolean flicker=true;
         Image buffer;
         Graphics gg;
         deathscreen(){
              super("Canvas");
              setSize(500,500);
              setResizable(true);
              setLocation(280,45);
              setLayout(new FlowLayout());
              setVisible(true);
              buffer=createImage(500,500);
              gg=buffer.getGraphics();
              gen.setResizable(false);
              gen.setVisible(true);
              addMouseListener(this);
              addMouseMotionListener(this);
         public void update(Graphics g)
              paint(g);
         public void paint(Graphics g){
              int rmin=1,gmin=0,bmin=0,thmin=0,hemin=0;
              setBackground(Color.black);          
              gg.setColor(Color.black);
              gg.fillRect(0,0,500,500);
              for(int i=0;i<=gen.i;i++){
                   rmin=(gen.props[i][1]/256)*(256-gen.props[i][5]);
                   bmin=(gen.props[i][2]/256)*(256-gen.props[i][5]);
                   gmin=(gen.props[i][3]/256)*(256-gen.props[i][5]);
                   gg.setColor(new Color(gen.props[i][1],gen.props[i][3],gen.props[i][2]));
                   gg.drawString("Nags Project1",20,30);
                   if(gen.props[i][0]==6){
                        gg.drawLine(gen.props[i][6],gen.props[i][7],gen.props[i][8],gen.props[i][9]);
                        for(int lc=0;lc<gen.props[i][4];lc++){
                             gg.setColor(new Color(gen.props[i][1]+rmin,gen.props[i][3]+gmin,gen.props[i][2]+bmin));
                             rmin=++rmin;
                             bmin=++bmin;
                             gmin=++gmin;
                             gg.drawLine(gen.props[i][6]+lc,gen.props[i][7]+lc,gen.props[i][8]+lc,gen.props[i][9]+lc);
                             gg.drawLine(gen.props[i][6]-lc,gen.props[i][7]-lc,gen.props[i][8]-lc,gen.props[i][9]-lc);
                   else if(gen.props[i][0]==3){
                        if(gen.props[i][6]>gen.props[i][8] && gen.props[i][7]<gen.props[i][9]){
                             gg.drawRect(gen.props[i][8],gen.props[i][7],gen.props[i][6]-gen.props[i][8],gen.props[i][9]-gen.props[i][7]);
                        else
                        if(gen.props[i][7]>gen.props[i][9] && gen.props[i][6]<gen.props[i][8]){
                             gg.drawRect(gen.props[i][6],gen.props[i][9],gen.props[i][8]-gen.props[i][6],gen.props[i][7]-gen.props[i][9]);
                        else
                        if(gen.props[i][6]<gen.props[i][8] && gen.props[i][7]<gen.props[i][9]){
                             gg.drawRect(gen.props[i][6],gen.props[i][7],gen.props[i][8]-gen.props[i][6],gen.props[i][9]-gen.props[i][7]);
                        else
                        if(gen.props[i][6]>gen.props[i][8] && gen.props[i][7]>gen.props[i][9]){
                             gg.drawRect(gen.props[i][8],gen.props[i][9],gen.props[i][6]-gen.props[i][8],gen.props[i][7]-gen.props[i][9]);
                   else if(gen.props[i][0]==5){     
                        if(gen.props[i][6]>gen.props[i][8] && gen.props[i][7]<gen.props[i][9]){
                             gg.drawOval(gen.props[i][8],gen.props[i][7],gen.props[i][6]-gen.props[i][8],gen.props[i][9]-gen.props[i][7]);
                        else
                        if(gen.props[i][7]>gen.props[i][9] && gen.props[i][6]<gen.props[i][8]){
                             gg.drawOval(gen.props[i][6],gen.props[i][9],gen.props[i][8]-gen.props[i][6],gen.props[i][7]-gen.props[i][9]);
                        else
                        if(gen.props[i][6]<gen.props[i][8] && gen.props[i][7]<gen.props[i][9]){
                             gg.drawOval(gen.props[i][6],gen.props[i][7],gen.props[i][8]-gen.props[i][6],gen.props[i][9]-gen.props[i][7]);
                        else
                        if(gen.props[i][6]>gen.props[i][8] && gen.props[i][7]>gen.props[i][9]){
                             gg.drawOval(gen.props[i][8],gen.props[i][9],gen.props[i][6]-gen.props[i][8],gen.props[i][7]-gen.props[i][9]);
                   else if(gen.props[i][0]==7){
                        //gg.drawLine(gen.props[i][6],gen.props[i][7],gen.props[i][6]+5,gen.props[i][7]+5);
              /*if(!flicker){
                   screengc.drawImage(buffer,0,0,null);
              g.drawImage(buffer,0,0,this);
    //MOUSE COMPONENTS--------------------------------------------------------------------------------------------------
         public void mouseClicked(MouseEvent me){
         public void mouseEntered(MouseEvent me){  }
         public void mouseExited(MouseEvent me){  }
         public void mousePressed(MouseEvent me){
              x1=me.getX();
              y1=me.getY();
              gen.props[gen.i][6]=me.getX();
              gen.props[gen.i][7]=me.getY();
              //repaint();
         public void mouseReleased(MouseEvent me){ 
              x2=me.getX();
              y2=me.getY();
              gen.props[gen.i][8]=me.getX();
              gen.props[gen.i][9]=me.getY();
              gen.i=++gen.i;
              gen.props[gen.i][0]=gen.props[gen.i-1][0];
              gen.props[gen.i][1]=gen.red.getValue();
              gen.props[gen.i][2]=gen.blue.getValue();
              gen.props[gen.i][3]=gen.green.getValue();
              repaint();
         public void mouseDragged(MouseEvent me){
              x2=me.getX();
              y2=me.getY();
              gen.props[gen.i][8]=me.getX();
              gen.props[gen.i][9]=me.getY();
              //flicker=false;
              repaint();
         public void mouseMoved(MouseEvent me){ 
              //flicker=true;
    im not able to have a 3D feel in the program where i draw the objects,
    when i try to use a loop and draw and redraw i am unable and i get a null pointer exception......wat do i do???

    im not able to have a 3D feel in the program where i draw the objects,What do you mean 'a 3D feel'? Nothing in your code seems to be doing anything other than using standard awt widgets, and drawing 2D shapes, so why would it be 3D?
    or do you mean it's using the Java look and feel rather than the platform one?
    when i try to use a loop and draw and redraw i am unable and i get a null pointer exception......wat do i do???repost the relevent code using [code] [[i]code] tags.
    Pete

  • What is 100% pure java?

    A philosophy?
    A style?
    I dont know...

    It means using only Java - no native code compiled in, for example.

  • Can clock synchronization be implemented by pure java?

    I want to build a simple distributed application, whose main purpose is to synchronize the local system clock in the slave JVM with the clock in the master JVM. Can it be implemented by pure java? Or I have to use JNI to implement it?
    And although the application is mainly used in LAN, the delay of transferring the data of time is small, but is there any algorithm to minimize the difference of system clock between the master and the slave?

    No. You can not synchronize the System Clock (clock) in 100% Pure Java.
    Using The Network Time Protocol (NTP) and Java, you can access the current time from many servers around the world.
    The problem here is that you can't change the clock through Java without an interface to the actaul clock.
    Since the clock is a native component (application, service, or utility) you can't change it while being 100% Pure Java.
    That does not mean that you can't do it at all. It just will not be Pure Java. You can, however, test to see what system you are on and then adjust the method used.
    On a Windows system, the clock is set by the Control Panel applet "Date and Time." This applet can be updated using the Command Driven Interface (CDI), also known as a Command Prompt. To do this you can use the Java object Process. The parameter, a String value, should point to the location of command prompt. Then add a PrintStream object to the Process object. Send the following line (using PrintStream.println()) - "time" and "date"
    To update the time use the following line:
    time [ time ]
    Use the time format: hh:mm:sec
    To update the date use the following line:
    date [ date ]
    Use the date format: mm-dd-yy
    This will work on Windows machines (3.x, 95, 98, Me, NT, XP) MS-DOS (all versions with Date/Time capability).

  • Java is 100% pure object oriented language or not?

    PLS help me...?
    I am get confussed.
    Java is 100% pure object oriented language or not?

    the only full OO programming language on thisplanet
    is SmallTalk.On your planet maybe. On mine, at least Eiffel
    also exists, probably more unknown others too. Some
    count Ruby, but I never looked at it.Ruby is pure OO too, FYI.
    the only full OO programming language on thisplanet
    is SmallTalk.Care to explain it in some more detail? What
    exactly is 100% OO, b.t.w.?No, I don't careWow, what an incredibly unhelpful response.
    In essence, 100% OO implies that every type within the language is an object. Since Java has primitive types like int, boolean, float etc, it cannot count as 100% OO.

  • Java is 100% pure OOPS Language or not

    Hi Everyone!
    I want to know that Java is 100% pure OOPS Language or not??
    If yes or no, then why?
    Plz reply

    Use the search window on the right side of this page. This absolutely meaningless question has been asked, and answered (argued about really) hundreds of times on this forum already.
    @mods, please lock this thread.

  • Is Java 100% Object oriented programming language?

    Hi,
    Is java 100% Object orinented programming language?
    If not then what is the reason?
    Thanks in advance

    Object oriented paradigm of programming says that everything in a programming world should felt like object mean: - "Abstract and Encapsulated" The paradigm is not completely satisfied by Java. Some of the feature that makes such violation are 1. Existence of primitives, which are manipulated in ordinary style. 2. Existence of mathematical operator handled also not like objects. These two essential characteristics make Java somewhat what is the question. But here again Java is big winner to make presence of wrapper classes to wrap up this difficulty or adaption. Moreover in Java 1.5 you will feel more free because of auto-boxing feature that make auto conversion of object to primitive and primitive to object.
    Regards,
    Mohd.Rafi Ansari
    Jamia Hamdard
    MCA
    09213626363

  • Is java 100% pure object oriented?

    I am very confuse is java 100% pure object oriented language.
    bcoz
    1)object oriented means everything should be in object but
    primitive data type is not object.
    2) java don't support multiple inheritances which is one of the oop 's
    concept

    I'd say that java is 100% java. No more, noless.
    I'm gonna say it's about 99.4738383% java. For
    no
    reason other than to confuse idiotsSomeone's always bumping their heads against
    some
    arbitrary theoretical purity when they aremissing
    what was, is and always has been most important:
    functionality.Functionality matters virtually nothing to thepeople
    that post these "questions". All that matters is
    being able to say the right thing in interviews so
    they can get a job and get carried through their
    career by people who actually know what they're
    doing. See it all the timeHehe, who carries you whilst you post here all day
    :P
    Ant builds, mostly :p

  • Running a java program

    This shows how dumb i am.
    I have a java program all wrote. How can i run it without using the compiler? Can i have a .exe file or something that I just have to click on to run??
    Thanks again
    Agdude

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\awaguespack>cd jbproject\untitled1\classes\untitled1
    C:\Documents and Settings\awaguespack\jbproject\untitled1\classes\untitled1>java
    form
    Exception in thread "main" java.lang.NoClassDefFoundError: form (wrong name: unt
    itled1/form)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    C:\Documents and Settings\awaguespack\jbproject\untitled1\classes\untitled1>dir
    Volume in drive C has no label.
    Volume Serial Number is C065-81CA
    Directory of C:\Documents and Settings\awaguespack\jbproject\untitled1\classes\
    untitled1
    07/24/2003 02:21 PM <DIR> .
    07/24/2003 02:21 PM <DIR> ..
    07/24/2003 02:21 PM 7,655 form.class
    1 File(s) 7,655 bytes
    2 Dir(s) 36,031,016,960 bytes free
    C:\Documents and Settings\awaguespack\jbproject\untitled1\classes\untitled1>echo
    %classpath%
    %classpath%
    C:\Documents and Settings\awaguespack\jbproject\untitled1\classes\untitled1>

  • High CPU usage while running a java program

    Hi All,
    Need some input regarding one issue I am facing.
    I have written a simple JAVA program that lists down all the files and directories under one root directory and then copies/replicates them to another location. I am using java.nio package for copying the files. When I am running the program, everything is working fine. But the process is eating up all the memories and the CPU usage is reaching upto 95-100%. So the whole system is getting slowed down.
    Is there any way I can control the CPU usage? I want this program to run silently without affecting the system or its performance.

    Hi,
    Below is the code snippets I am using,
    For listing down files/directories:
            static void Process(File aFile, File aFile2) {
              spc_count++;
              String spcs = "";
              for (int i = 0; i < spc_count; i++)
              spcs += "-";
              if(aFile.isFile()) {
                   System.out.println(spcs + "[FILE] " + aFile2.toURI().relativize(aFile.toURI()).getPath());
                   String newFile = dest + aFile2.toURI().relativize(aFile.toURI()).getPath();
                   File nf = new File(newFile);
                   try {
                        FileCopy.copyFile(aFile ,nf);
                   } catch (IOException ex) {
                        Logger.getLogger(ContentList.class.getName()).log(Level.SEVERE, null, ex);
              } else if (aFile.isDirectory()) {
                   //System.out.println(spcs + "[DIR] " + aFile2.toURI().relativize(aFile.toURI()).getPath());
                   String newDir = dest + aFile2.toURI().relativize(aFile.toURI()).getPath();
                   File nd = new File(newDir);
                   nd.mkdir();
                   File[] listOfFiles = aFile.listFiles();
                   if(listOfFiles!=null) {
                        for (int i = 0; i < listOfFiles.length; i++)
                             Process(listOfFiles, aFile2);
                   } else {
                        System.out.println(spcs + " [ACCESS DENIED]");
              spc_count--;
    for copying files/directories:public static void copyFile(File in, File out)
    throws IOException {
    FileChannel inChannel = new
    FileInputStream(in).getChannel();
    FileChannel outChannel = new
    FileOutputStream(out).getChannel();
    try {
    inChannel.transferTo(0, inChannel.size(),
    outChannel);
    catch (IOException e) {
    throw e;
    finally {
    if (inChannel != null) inChannel.close();
    if (outChannel != null) outChannel.close();
    Please let me know if any better approach is there. But as I already said, currently it's eating up the whole memory.
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • How to open and navigate between human task forms in a same page?

    Hi I use Oracle BPM 11.1.1.5 I have a question about taskflows in BPM Application. In ADF web application, I create a sipmle task flow and insert view id and bind these to jspx pages, my pages are opend in same page when return an outcome. For exapml

  • How do I get the Open Dialog on Android ICS 4.0?

    Hi, I am using Flash CS6, Android setup, 3.0 AS I have a Galaxy Tab, ICS 4.0 for a device I can read & write a text file perfectly fine on my PC. But, when I upload to my Galaxy Tab 2 (7").... 1) I get a generic dialog that displays my path (/mnt/sdc

  • How big a .pdf file can be?

    I produce a pdf-binder with 1500 several pdf-pages made of scanned paper clippings. this binder contains an index to browse the several pages and must be produced on CD. the filesize is more than 500 MB, so the performance of this CDs is not so well.

  • Business Object R3 Installation

    Hello Frds, I am the new user to this forum. I am facing a problem while installing the BOXIr3 on my PC. The exact scenerio is as follows: The BOXIr3 was installed on my pc but I installed Crystal Report after that. But I dont use it so much time so

  • Forms Central question

    I have a Creative Cloud subscription. I have Adobe Acrobat XI Pro on my computer. I created a form using FormsCentral, but it says i am limited to 50 responses, and to get more, i need to upgrade? i thought having Acrobat XI Pro would allow more resp