Peter Mc Cormack

Greenhorn
+ Follow
since Oct 05, 2012
Peter likes ...
Java
Kerry Ireland
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
10
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Peter Mc Cormack

In my neck of the woods, I don't think any developer worth his/her salt would go for an internship; the demand is just too high.


Demand is very high for OO Programmers in my country as the IT and game industries are growing, and there is a skills shortage.
Entry salaries are €30k - €35k. I don't know what paid interns get, but I suppose it would amount to less than mentioned...
7 years ago
Thanks for the feedback guys, you've been really helpful!
7 years ago

Prasad Krishnegowda wrote:Unfortunately, I was not able to get any interns..



@Prasad, Do you think it would be better to get an intern position to start with?
7 years ago

Everyplace I've worked has been understanding of the new person not knowing much and provided strong mentoring.


Thanks Jeanne. Is it the norm that most people get there first year experience as an intern?

Anyone else want to share their experience about their first year in IT?
7 years ago
Hi, I recently completed my OCJA 6 and am currently studying OCJP 6 (will sit exam in January).

I'm in touch with several recruitment agents with a view to setting up interviews for Dec/Jan.
Ideally I'd get an entry level position but these are few and far between. Junior positions are for those with 1 - 3 years.

It would be great to hear how seasoned programmers got your first jobs in IT, and what your first month to six months was like (what was expected from you).

Thanks.
7 years ago
Jeff, thanks for the detailed response, unfortunately that classpath did not work for some reason.
However I found this article http://jarticles.com/package/package_eng.html , which instructs the setting of the classpath to:

C:\>set CLASSPATH=.;C:\;

Then I ran the class and it worked!

Again, thanks for all your help!
7 years ago
Hi guys, thanks for your feedback.

I'm still confused, and have attempted to follow your advice without success.
As far as I understand, the classpath and directory are the same. Both TestPackage1.java and TestPackage1.class are in the same folder. The directory folders are as follows:

C:\javahandcode\mainpackage\package1

With files TestPackage1.java and TestPackage1.class residing in folder package1.

When I compile the file I use the following command (which works fine):
C:\javahandcode\mainpackage\package1>javac TestPackage1.java

Running the following created the same NoClassDefFoundError:
C:\>java -cp ../../../ javahandcode.mainpackage.package1.TestPackage1

Running the following:
C:\>java -cp javahandcode/mainpackage/package1/ javahandcode.mainpackage.package1.TestPackage1
... created...Error: Could not find or load class javahandcode.mainpackage.package1.TestPackage1

Thanks.


7 years ago
I'm using Notepad++ to write code, and command-prompt to compile and run the file on Windows 7. The problem I'm having is when testing packages I keep getting NoClassFoundError. From what I
discovered this error has something to do with a missing classpath (I think?)...The compiled class file is in the same folder as the source file.
The following is a simple class with the package folders included:

The project folder 'JavaHandCode' is on the C:\ drive. The class compiles without issue, but when I try to run the class I get the error below...

C:\javahandcode\mainpackage\package1>javac TestPackage1.java
C:\javahandcode\mainpackage\package1>java TestPackage1
Exception in thread "main" java.lang.NoClassDefFoundError: TestPackage1 (wrong
name: javahandcode/mainpackage/package1/TestPackage1)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:480)
C:\javahandcode\mainpackage\package1>


The really puzzling part is this; when I delete the package from the source code, the newly compiled file executes correctly.

Would really appreciate help with this, thanks!
7 years ago
Thanks Asad, just what I was looking for!
Cheers Koilraj. I'm now studying for SCJP 6, hope to make similar report regarding that in a couple of months!
7 years ago
Hi all, I sat and passed my SCJA 6 exam a few days ago.

For study reference I used SCJA Study Guide, Head First, and various videos including some from Mark Lassoff, Bucky Roberts (thenewboston.org) etc. Anyone sitting that exam in the near future may be interested to hear that my classmates and I encountered no UML or 'associations' questions at all.

7 years ago