David’s Thesis Blog


Complied and Running
August 7, 2008, 6:01 am
Filed under: Uncategorized

Code is currently complied and running smoothly, some issues:

  • Microsoft Studio only supplied jre package when the project requires the full jdk package.
  • Ant installed smoothly and is currently being used to build and run the code as opposed to normal java.
  • Troubleshooting helped to resolve a simple compliation error.

History of my cmd window:

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\david>cd\

C:\>dir/w
 Volume in drive C is alpha
 Volume Serial Number is 4CD2-9295

 Directory of C:\

autoexec.bat          config.sys            [Downloads]
DVDRipper_debug.txt   [Fraps]               [PerfLogs]
[PerfTester]          PokerStars.log.0      [Program Files]
[temp]                [Users]               [Windows]
               4 File(s)         20,933 bytes
               8 Dir(s)  143,571,857,408 bytes free

C:\>cd PerfTester

C:\PerfTester>dir/w
 Volume in drive C is alpha
 Volume Serial Number is 4CD2-9295

 Directory of C:\PerfTester

[.]          [..]         [build]      build.xml    [doc]        setenv.bat
[src]        test.prop
               3 File(s)          2,136 bytes
               5 Dir(s)  143,571,857,408 bytes free

C:\PerfTester>ant test
‘ant’ is not recognized as an internal or external command,
operable program or batch file.

C:\PerfTester>setenv.bat
Reset path and classpath
Set Java
Set Ant
Set home
C:\PerfTester>ant test
Buildfile: build.xml

test:
     [java] test config fileName = C:\user\Shiping.Chen\Test\java\PerfTester\tes
t.prop
     [java] Tester.init(C:\user\Shiping.Chen\Test\java\PerfTester\test.prop) cal
led
     [java] java.io.FileNotFoundException: C:\user\Shiping.Chen\Test\java\PerfTe
ster\test.prop (The system cannot find the path specified)

BUILD FAILED
C:\PerfTester\build.xml:24: Java returned: 1

Total time: 0 seconds
C:\PerfTester>java tester test.pro
Exception in thread “main” java.lang.NoClassDefFoundError: tester (wrong name: T
ester)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

C:\PerfTester>ant test
Buildfile: build.xml

test:
     [java] test config fileName = C:\PerfTester\test.prop
     [java] Tester.init(C:\PerfTester\test.prop) called
     [java] — listing properties —
     [java] testName=Hello
     [java] testWarmup=5
     [java] testCooldown=5
     [java] testClassName=HelloTester
     [java] testThreadNmuber=10
     [java] testRuntime=10000
     [java] Tester.run() called
     [java] testThreadNmuber = 10
     [java] To instance a test driver
     [java]  Hello Thread-3 to sleep for 8000 ms
     [java]  Hello Thread-2 to sleep for 4000 ms
     [java]  Hello Thread-5 to sleep for 4000 ms
     [java]  Hello Thread-8 to sleep for 6000 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-7 to sleep for 4000 ms
     [java]  Hello Thread-9 to sleep for 0 ms
     [java]  Hello Thread-1 to sleep for 4000 ms
     [java]  Hello Thread-0 to sleep for 2000 ms
     [java]  Hello Thread-4 to sleep for 2000 ms
     [java]  Hello Thread-9 to sleep for 4000 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-0 to sleep for 4000 ms
     [java]  Hello Thread-4 to sleep for 4000 ms
     [java]  Hello Thread-1 to sleep for 4000 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-2 to sleep for 4000 ms
     [java]  Hello Thread-5 to sleep for 6000 ms
     [java]  Hello Thread-9 to sleep for 4000 ms
     [java]  Hello Thread-7 to sleep for 8000 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-8 to sleep for 4000 ms
     [java]  Hello Thread-4 to sleep for 4000 ms
     [java]  Hello Thread-0 to sleep for 6000 ms
     [java]  Hello Thread-2 to sleep for 0 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-2 to sleep for 6000 ms
     [java]  Hello Thread-3 to sleep for 4000 ms
     [java]  Hello Thread-1 to sleep for 4000 ms
     [java]  Hello Thread-9 to sleep for 0 ms
     [java]  Hello Thread-9 to sleep for 0 ms
     [java]  Hello Thread-9 to sleep for 0 ms
     [java]  Hello Thread-9 to sleep for 8000 ms
     [java]  Hello Thread-5 to sleep for 4000 ms
     [java]  Hello Thread-6 to sleep for 2000 ms
     [java]  Hello Thread-8 to sleep for 0 ms
     [java]  Hello Thread-8 to sleep for 4000 ms
     [java]  Hello Thread-4 to sleep for 4000 ms
     [java]  Hello Thread-3 to sleep for 2000 ms
     [java]  Hello Thread-6 to sleep for 4000 ms
     [java]  Hello Thread-1 to sleep for 2000 ms
     [java]  Hello Thread-7 to sleep for 2000 ms
     [java]  Hello Thread-0 to sleep for 4000 ms
     [java]  Hello Thread-3 to sleep for 2000 ms
     [java]  Hello Thread-2 to sleep for 6000 ms
     [java]  Hello Thread-8 to sleep for 2000 ms
     [java]  Hello Thread-5 to sleep for 6000 ms
     [java]  Hello Thread-1 to sleep for 4000 ms
     [java]  Hello Thread-7 to sleep for 2000 ms
     [java]  Hello Thread-4 to sleep for 2000 ms
     [java]  Hello Thread-3 to sleep for 4000 ms
     [java]  Hello Thread-8 to sleep for 2000 ms
     [java] Thread-0 : exited
     [java]  Hello Thread-9 to sleep for 4000 ms
     [java] Thread-1 : exited
     [java]  Hello Thread-3 to sleep for 6000 ms
     [java] Thread-2 : exited
     [java] Thread-3 : exited
     [java] Thread-4 : exited
     [java] Thread-5 : exited
     [java] Thread-6 : exited
     [java] Thread-7 : exited
     [java] Thread-8 : exited
     [java] Thread-9 : exited
     [java]
     [java] Tester.report() called
     [java] testName = Hello
     [java] minValue = 0
     [java] aveValue = 3212
     [java] maxValue = 8000
     [java] 20  5
     [java] 2020        10
     [java] 4020        13
     [java] 6020        3
     [java] 8020        2

BUILD SUCCESSFUL
Total time: 26 seconds
C:\PerfTester>

Advertisements

Leave a Comment so far
Leave a comment



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s



%d bloggers like this: