permaculture playing cards
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


Win a copy of Building Microservices this week in the Design forum!
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Running a java Custom ClassLoader program in STS is giving issue
 
jQuery in Action, 3rd edition