Vani Shastri

Ranch Hand
+ Follow
since Aug 17, 2006
Merit badge: grant badges
For More
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vani Shastri

hi,

I have a compilation error which says -
Failure executing javac, but could not parse the error:
javac: invalid target release: 1.0

i customised the pom.xml

where have i gone wrong?
16 years ago
I got it....it was with my settings.xml - proxy settings.
Thanks to all for guiding me.
16 years ago
my local repository is not getting created? does unzipping maven itself create a local rep .m2?
any settings to be done in settings.xml?
16 years ago
the plexus container issue is still not resolved...
the steps i followed -
1. unzip maven
2. set the JAVA_HOME variable to the JDK
3. set the PATH variable to the maven's bin
4. execute mvn --version, to see the version which is in use
5. create a project -
mvn archetype:create -DgroupId=com.demo.app -DartifactId=my-app

At this step, i get an error - The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found.

I downloaded archetype plugin explicitly....now the error says - plexus container not found in the plugin. I even downloaded plexus container jars. Still the error exist.
I am connected to the internet for maven to download plugins during run time for all the operations.

Where am i going wrong?
16 years ago
i copied the plexus containers from the maven site. Still, m getting the same error.
16 years ago
Thanks for guiding me.

While running the command for creating the archetype -

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

initially the error said - no archetype plugin found. I copied the archetype plugin into the lib folder of maven. Now the error says -

Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-3:create': Cannot find Plexus container for plugin: org.apache.maven.plugins:maven-archetype-plugin

where do i find plexus container?
16 years ago
hi,
I am new to maven. I have a few doubts -

1. where does the local repository get created once maven is installed?
2. The directory structure like src,main,target etc... do they get created automatically. i mean where are the artifacts placed? do we have to create the structure explicitly?
3. how to customize the settings.xml n how to run a sample project on maven?

help needed.

Thanks.
16 years ago
Thanks a lot Pavan. That was exactly what i was looking for.
Have a nice day .
17 years ago
Hi,

After a quick search, i found this for tiling an image. But, i am not sure how to go about it.



Please guide.

Thanks.
17 years ago
Hi all,

I have a JButton and i have set a new Icon (new image) to it.
How do i set text on the image ?

jbutton.setIcon(new ImageIcon("C:/Image.GIF"));

Thanks
17 years ago
Thank you people. Thanks for the guidance.

Mr. Hassel, your solution perfectly fitted into my requirement.
Thanks & have a wonderful day ahead.
17 years ago
I have two lists -

List list1 = (List) model
.getlist1(); eg [obj1, obj2]
List list2 = (List) model
.getlist2(); eg [obj1, obj2, obj3, obj4]

both the lists contain objects of similar type.

Basically list1 is a subset of list2. I want to retreive all the objects present in
list2 which is present in list1 also and remove them from list2.


how do i use boolean contains(object o) in this case ?
17 years ago
I have two lists contaning objects of similar type. How do we compare two lists , in other words, how do we see see if a particular object present in one list is present in the other list also?

Please help.

Thanks
17 years ago
Thanks for tht API. But I guess objects are printable. For eg in the above mentioned code, the object "rect" is printed. My understanding was we have to import awt.print and implement printable. I agree that the user cannot give acommand to print the object directly. That job is done by the Printable object (If I have understood it right).

PrinterJob job = PrinterJob.getPrinterJob();

job.setPrintable(new PrintObject());

Do correct me if I am wrong.
17 years ago
Hi,
I have implemented the setEditable(). It works fine. But the hurdle now is to create a table in a JTree. Is it possible?

Awaiting for some solution.


Thank you.
17 years ago