This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Running a java Custom ClassLoader program in STS is giving issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Running a java Custom ClassLoader program in STS is giving issue" Watch "Running a java Custom ClassLoader program in STS is giving issue" New topic
Author

Running a java Custom ClassLoader program in STS is giving issue

Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 299
I thought of creating a Custom ClassLoader to know how it works. I went to this site Custom Class Loader and copied the code to my STS.

When i try running from my command prompt, i get the desired output like below.As the site says, I only compiled "CCLRun.java" and "CompilingClassLoader.java". I leave rest of the files to be compiled by my Custom Class Loader.

now i do below
% java CCLRun Foo arg1 arg2

and i get the desired ouptut like below


CCL: Compiling Foo.java...
foo! arg1 arg2
bar! arg1 arg2
baz! arg1 arg2
CCL: Compiling Boo.java...
Boo!




Now i thought i will try the same in my STS, so that i can debug it and see the execution of the code.

What i did was rt click on the project-->Debug as-->Debug Configurations-->Arguments.

In arguments i give name as CCLRun and program arguments as Foo arg1 arg2.

But when i try above i get below exception



What can the problem be?


Man Suraj
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running a java Custom ClassLoader program in STS is giving issue