Re: [java ee programming] javac??

2010-02-23 Thread deepti monga
Hi Alex
 
You need to have a environment variable called CLASSPATH . The class path is 
the path that the Java runtime environment searches for classes and other 
resource files.
This should point to the lib folder  "C:\Program Files\Java\jre6\lib"
Then on the command prompt enter javac. This should be recognizable now.
 
Thanks

--- On Wed, 2/24/10, JKid314159  wrote:


From: JKid314159 
Subject: [java ee programming] javac??
To: "Java EE (J2EE) Programming with Passion!" 

Date: Wednesday, February 24, 2010, 7:56 AM


Hi!

I was preparing my new computer for this course and dowloaded the "JDK
+ Java EE Bundle."  No previous version of Java was installed on this
machine.
1)
command line:
java -version
gives the following:
java version "1.6.0_17"
Java (TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot (TM) 64 Bit Server VM (build 14.3-b01, mixed mode).
2)
My HelloWorld.java file did not compile with error message:
javac is not recognized as an internal...
3)
Then I went to Environmental Variables and ammended the path with the
following:
C:\Program Files\Java\jdk1.6.0_02\bin.
The path already had the following in it:
C:\Program Files\Sun\SDK\bin
4)
I went to install the Acrobat reader/viewer for free and it would not
install and gave error:
Java VM not installed.
--
I think I was suppose to install the SE version.  Also, I started the
server but did not know how to stop it?

The JDK is installed and so therefore the JRE is installed and I
thought this would have what is need?

Can I ask for your feedback on this?

Thank you,

Alex
OS: Windows



-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en



  

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

[java ee programming] javac??

2010-02-23 Thread JKid314159
Hi!

I was preparing my new computer for this course and dowloaded the "JDK
+ Java EE Bundle."  No previous version of Java was installed on this
machine.
1)
command line:
java -version
gives the following:
java version "1.6.0_17"
Java (TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot (TM) 64 Bit Server VM (build 14.3-b01, mixed mode).
2)
My HelloWorld.java file did not compile with error message:
javac is not recognized as an internal...
3)
Then I went to Environmental Variables and ammended the path with the
following:
C:\Program Files\Java\jdk1.6.0_02\bin.
The path already had the following in it:
C:\Program Files\Sun\SDK\bin
4)
I went to install the Acrobat reader/viewer for free and it would not
install and gave error:
Java VM not installed.
--
I think I was suppose to install the SE version.  Also, I started the
server but did not know how to stop it?

The JDK is installed and so therefore the JRE is installed and I
thought this would have what is need?

Can I ask for your feedback on this?

Thank you,

Alex
OS: Windows



-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] Re: ServletExamples J2EE 1.4

2010-02-23 Thread miga


On 23 fév, 16:51, jmt0806  wrote:
> Now there seems to be an issue with running the JSPExamples (J2EE1.4)
> Samples:
>
> G:\My Documents\NetBeansProjects\J2EE\JSPExamples(J2EE1.4)1\nbproject
> \build-impl.xml:535: Problem: failed to create task or type copyfiles
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any / declarations have taken
> place.
> BUILD FAILED (total time: 3 seconds)
>
Directly from Mr Sang Shin:
the solution is to remove the (J2EE1.4) part of the name of the
project.
Otherwise the labs have been updated to use the examples from the
samples directory, not creating them.
Just for fun, do both. You may learn something.

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] Re: ServletExamples J2EE 1.4

2010-02-23 Thread miga


On Feb 23, 4:51 pm, jmt0806  wrote:
> Now there seems to be an issue with running the JSPExamples (J2EE1.4)
> Samples:
>
> G:\My Documents\NetBeansProjects\J2EE\JSPExamples(J2EE1.4)1\nbproject
> \build-impl.xml:535: Problem: failed to create task or type copyfiles
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any / declarations have taken
> place.
> BUILD FAILED (total time: 3 seconds)
>
> Tried running with Tomcat and received this error.
>
> Netbeans IDE 6.8
>
> Any suggestions?
Do you check the jdk/j2ee version, it should be 1.4. I've not tried
them with NetBeans 6.8, just with NetBeans 6.5.1, and 6.7.1 so I
cannot say for sure. Check if you have samples in NetBeans (create a
new project and click on samples (or maybe examples) as category),
there should be some project with tomcat. If you succeed in building
those samples, then you may compare with diff (or any other similar
command line tool or graphical one) the differences between project,
especially project properties, build.xml and the like. Then hacking a
bit, you should probably succeed in running the JSPExamples.

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] Re: ServletExamples J2EE 1.4

2010-02-23 Thread jmt0806
Now there seems to be an issue with running the JSPExamples (J2EE1.4)
Samples:

G:\My Documents\NetBeansProjects\J2EE\JSPExamples(J2EE1.4)1\nbproject
\build-impl.xml:535: Problem: failed to create task or type copyfiles
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken
place.
BUILD FAILED (total time: 3 seconds)

Tried running with Tomcat and received this error.

Netbeans IDE 6.8

Any suggestions?


On Feb 19, 1:17 pm, miga  wrote:
> On Feb 19, 7:59 pm, jmt0806  wrote:> There seems to be an 
> issue with running the ServletExamples
> > application on this machine. Error message:
>
> I'm not sure you may run the j2ee1.4 examples with GlassFish v3. Try
> with Tomcat.

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] Can somebody help me please

2010-02-23 Thread Rafał Laczek
Hi,

Pleaase compare my wicket java class with corresponding html and tell me 
what I'm going wrong.
The comunicate in browser is: WicketMessage: Unable to find component 
with id 'wmc' in [MarkupContainer [Component id = wmc]]. This means that 
you declared wicket:id=wmc in your markup, but that you either did not 
add the component to your page at all, or that the hierarchy does not 
match.[markup = 
file:/C:/Instal/tomcat/apache-tomcat-6.0.16/temp/10-basicPortlets/WEB-INF/classes/no/arrive/portlets/client/ArriveDriftsmeldingerListView.html


JAVA CLASS
Content objectcontent = new Content();
 RepeatingView rv = new RepeatingView("rv");
add(rv);
WebMarkupContainer wmc = new WebMarkupContainer("wmc");
wmc.add(new Label("title", "Title"));
wmc.add(new Label("list","List"));
rv.add(wmc);

new Label("title",objectcontent.getGENERAL());
// for(Message item :msg ){
new 
ListView("list",objectcontent.getGeneral()){
protected void 
populateItem(ListItem item) {
 Message m = 
(Message)item.getModelObject();
 //item.add(new Label("message1", 
m.getFormattedTime()));
 item.add(new Label("message2", 
m.getAffects()));
 item.add(new Label("message3", 
m.getDetails()));
 item.add(new Label("message4", 
m.getEvent()));
 //item.add(new Label("message5", 
m.getFormattedMessageTitle()));
 item.add(new Label("message6", 
m.getTime()));
 item.add(new Label("message7", 
m.getTest()));
}
};




HTML FILE


   
   
 
  
  
  
  
  
  
   

  


-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en