The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
pipes : error on compiling! i.pas High Level Programming 2 03-22-2006 05:13 AM
Compiling Error chandra80 High Level Programming 1 10-30-2005 02:01 PM
question about JAVA compiling .. ANAMIKA56 SUN Solaris 7 08-11-2005 11:03 AM
error when compiling....(typeset) esham Shell Programming and Scripting 4 04-10-2005 08:18 PM
Error Compiling C program Vivek High Level Programming 3 10-25-2001 11:13 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-05-2007
Katkota Katkota is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 118
Talking Java compiling error

I need Help folks;
I'm very new to Java & i was trying to compile some java files & i got a lot of errors (see below), could some one tell me what am i doing wrong?


These are the files i need to compile:

AddCommentActionLogging.java
EditPageActionLogging.java

When i run:
/opt/jdk1.5.0_08/bin/javac *.java

I get these errors:


AddCommentActionLogging.java:3: package com.atlassian.confluence.pages.actions does not exist
import com.atlassian.confluence.pages.actions.AddCommentAction;
^
AddCommentActionLogging.java:5: package org.apache.log4j does not exist
import org.apache.log4j.Category;
^
AddCommentActionLogging.java:7: cannot find symbol
symbol: class AddCommentAction
public class AddCommentActionLogging extends AddCommentAction
^
AddCommentActionLogging.java:9: cannot find symbol
symbol : class Category
location: class com.ptc.ssp.se.tools.confluence.AddCommentActionLogging
private static Category log = Category.getInstance(
^
EditPageActionLogging.java:3: package com.atlassian.confluence.pages.actions does not exist
import com.atlassian.confluence.pages.actions.EditPageAction;
^
EditPageActionLogging.java:5: package org.apache.log4j does not exist
import org.apache.log4j.Category;
^
EditPageActionLogging.java:7: cannot find symbol
symbol: class EditPageAction
public class EditPageActionLogging extends EditPageAction
^
EditPageActionLogging.java:9: cannot find symbol
symbol : class Category
location: class com.ptc.ssp.se.tools.confluence.EditPageActionLogging
private static Category log = Category.getInstance(
  #2 (permalink)  
Old 12-05-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by Katkota View Post
AddCommentActionLogging.java:5: package org.apache.log4j does not exist
This looks like a major problem. I suggest you set up your CLASSPATH to include all the various places that contain the Java code you are going to reference.
  #3 (permalink)  
Old 12-05-2007
Katkota Katkota is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 118
Could you please explain more?
  #4 (permalink)  
Old 12-05-2007
bhargav's Avatar
bhargav bhargav is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2004
Location: USA
Posts: 511
Quote:
AddCommentActionLogging.java:5: package org.apache.log4j does not exist
import org.apache.log4j.Category;
Find out the corresponding jars for each of the the import class/pkg and add those jars in the classpath and then start compiling.
  #5 (permalink)  
Old 12-05-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Using a tool such as Apache Ant will make it easier for compiling projects with complicated class paths by putting the build instructions in a build file (similar to Makefile).
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0