Problem creating package structure and where is my .class file??????

Working on Tomcat I have my folder structure like this...
webapps
->app_root
->WEB-INF
->classes
->src
-> .java files
->META_INF
In the command prompt i compile using this
c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\*.java
and in my java files I have the package structure mentioned as
package com.acme;
after compiling i expected this to happen for me.
webapps
->app_root
->WEB-INF
->classes (in WEB-INF)
->com (in classes)
->acme (in com)
-> .class files (in acme)
->src (in WEB-INF)
-> .java files(In src)
->META_INF
The funiest part for me started he when i compiled the file
c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\one.java
It compiled successfully without giving me any error but no package structure was created and THERE IS NO one.class file anywhere in my system.....Then how did it compile my file and where is the .class file.
I think am worng somewhere but unable to locate it.
Can somebody pull me out of thiss stuf??? Need to do it fast.
Thanx.

c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\*.java
The command you posted does not have a source file specification. You are telling the compiler to put the .class files in src\*.java but you are not specifying any .java files. It looks like your command should be javac -d . src\*.java

Similar Messages

  • Best approach to create Package Structure and .content.xml

    I am aware that we have a schem.xsd for generic package content.xml creation and neither do vault.xml and other associated xml files in the META-INF folder of the package.
    I want to know if there is some recommended approach to build the package and xml files, specifically content.xml programmatically on the file system. I know that we can use package manager (API not the GUI/screen) but that comes into picture when the folder structure and xmls files are created. I am interested to know a standard procedure of acceptable procedures to build the structure. I have seen folks use JDom/SAX etc to build this and even velocity to try it out using templates but that looks largely as a workaround. Can anyone help with some inputs on this?

    We've been successful at using ANT as a Build tool to run XSLT 2.0 using the Saxon XSL processor.  We have processed both CSV and XML files into packages.  This started out pretty simply, but grew more complex than initially thought.  There are a lot of subtlties that can be overlooked in the package format.  Also if your filters aren't right it will happily delete a lot of data.  Thankfully it appears uninstalling can recover these most times, but I'd recommend testing packages on a throw away instance.
    I've posted an example Ant + XSL that goes from CSV > XML > Many XML Files > CRX Package Zip: https://github.com/odu/crx-package-xsl-example.  There is also some info on some of the complexities of a package mentioned on that page that may be helpful, even if Ant / XSL isn't your route.
    Can you share more about your use for building a package, what format is the source data in, etc?  This example is really only useful for batch loading.

  • Problem in Packages while compailing the code "bad class file"

    Hi,
    I wrote the code for encrypt the password in .java file and i used package also
    i'm importing that package and i'm compiling the .java file it throws the error like this.
    regi1.java:23: cannot access EncryptPassword
    bad class file: .\EncryptPassword.java
    file does not contain class EncryptPassword
    Please remove or make sure it appears in the correct subdirectory of the claspath
    EncryptPassword enc = new EncryptPassword();
                            ^
    1 error
    EncryptPassword.java
    package encrypt;
    import java.io.UnsupportedEncodingException;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import sun.misc.BASE64Decoder;
    import sun.misc.BASE64Encoder;
    import sun.misc.CharacterEncoder;
    public class EncryptPassword  
         public EncryptPassword() { }
         public EncryptPassword instance;
         public String getEncrypt(String plaintext) throws Exception
         MessageDigest md = null;
         try
         md = MessageDigest.getInstance("SHA"); //step 2
         catch(NoSuchAlgorithmException e)
         throw new Exception(e.getMessage());
         try
         md.update(plaintext.getBytes("UTF-8")); //step 3
         catch(UnsupportedEncodingException e)
         throw new Exception(e.getMessage());
         byte raw[] = md.digest(); //step 4
         String hash = (new BASE64Encoder()).encode(raw); //step 5
         return hash; //step 6
         public EncryptPassword getInstance() //step 1
         if(instance == null)
         return new EncryptPassword();
         else
         return instance;
    }regi1.java
    import encrypt.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class regi1 extends HttpServlet
         public regi1(){     }
          public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
            throws ServletException, IOException
            java.io.PrintWriter printwriter = httpservletresponse.getWriter();
            HttpSession httpsession = httpservletrequest.getSession(true);
            httpservletresponse.setContentType("text/html");
            try
            {     EncryptPassword enc = new EncryptPassword();
                   String Email = httpservletrequest.getParameter("email");
                   String Password = httpservletrequest.getParameter("password");
    *--- some code for database connection---*
    String insQry1 =  "INSERT INTO register (Email, Pass);
    pStmt.setString(1,Email);
    pStmt.setString(2,enc.getEncrypt(Password));     
              catch( Exception exception)
                   exception.printStackTrace();           
                   System.out.println(exception);
              httpservletrequest.getRequestDispatcher("./FileSubmit.jsp").forward(httpservletrequest,httpservletresponse);
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Multipost: http://forum.java.sun.com/thread.jspa?threadID=5225097&tstart=0
    Please continue the thread there and don't multipost!
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • I would like to create a playlist of some of my voicememos to hear on my iphone5. I have no problem creating the list and can listen on playlist on computer but not when i sync to my phone. How can I listen to voicememos in a playlist on my iPhone?

    I would like to create a playlist of some of my voicememos to hear on my iphone5. I have no problem creating the list and can listen on playlist on computer but not when i sync to my phone. How can I listen to voicememos in a playlist on my iPhone?

    Hi czigrand,
    Thanks for visiting Apple Support Communities.
    Currently, you can gift dollar amounts or individual items (EG. songs) on the iTunes Store. See this article for more information:
    In the iTunes Store, you can gift a dollar amount or specific music, movies, TV shows, or apps from your iPhone, iPod touch, iPad, Mac, or PC. Follow these steps to send a gift from the iTunes Store.
    iTunes: Sending iTunes Gifts
    http://support.apple.com/kb/HT2736
    Best Regards,
    Jeremy

  • How to upload words, exel, PDF file from the pc via itune to the iPad, and where will the uploaded file be saved? In the apps?

    How to upload words, exel, PDF file from the pc via itune to the iPad, and where will the uploaded file be saved? In the apps?

    You will need an app (or apps) on your iPad that is capable of reading the documents, as they will be saved with the app - if you don't have such an app then there is nothing to transfer them to or to read/access them.
    One method of transferring them is toconnect your iPad to your computer's iTunes, select it's app tab, and then scroll to the bottom of it - you should the apps That you've got that are capable of file-sharing (if you've got any).  Selecting/high-lighting one of them should then allow you to add files to it via the box to the right of it.
    An alternative way to get the documents onto your iPad is if the app that you want to transfer them to has a wifi setting, which will then allow you to transfer the documents wirelessly. You can also send the documents to yourself as attachments and then use Mail's 'open in' facility to copy them into your chosen app.
    Edit : more info on file sharing from the manual :
    File Sharing lets you transfer files between iPad and your computer. You can share files created with a compatible app and saved in a supported format.
    Apps that support file sharing appear in the File Sharing Apps list in iTunes. For each app, the Files list shows the documents that are on iPad. See the app’s documentation for how it shares files; not all apps support this feature.
    Connect iPad to your computer.
    In iTunes, select iPad in the Devices list, then click Apps at the top of the screen.
    In the File Sharing section, select an app from the list on the left.
    On the right, select the file you want to transfer, then click “Save to” and choose a destination on your computer.
    Transfer a file from your computer to iPad:
    Connect iPad to your computer.
    In iTunes, select iPad in the Devices list, then click Apps at the top of the screen.
    In the File Sharing section, click Add.
    Select a file, then click Choose (Mac) or OK (PC).
    The file is transferred to your device and can be opened using an app that supports that file type. To transfer more than one file, select each additional file.
    Delete a file from iPad: Select the file in the Files list, then tap Delete.
    Message was edited by: King_Penguin

  • In iphone4, How and where to save a file attached in mail

    hey, i have started using iPhone. presently using iPhone4. How and where can i save files attached in mail.

    Photos attached to an email can be saved to the Camera Roll in the Photos app on your phone. Tap and hold on a photo in the email until you get a choice to Save Image.
    Other documents require a suitable app.
    PDFs can be saved in the free iBooks app available in the App Store.
    Word docs can be saved in Pages or other apps that support text files.
    Etc.
    To save a document tap on the doc. You will either be able to view the contents or get a choice to open in some other app,

  • Oracle: Problem creating package via CF

    G'day
    I've got a <cfquery> that creates a package header,
    another that creates
    the body, and then a <cfstoredproc> which calls one of
    the procedures in
    the package.
    I am getting this error, when my code comes to execute the
    procedure:
    [Macromedia][Oracle JDBC Driver][Oracle]ORA-06550: line 1,
    column 7:
    PLS-00905: object myDB.myPkg is invalid ORA-06550: line 1,
    column 7:
    PL/SQL: Statement ignored
    However if I go into Oracle SQL Developer, and examine the
    package, it's
    all present and accounted for, and indeed works fine.
    If I manually recompile the package, I get no errors
    (right-click > compile
    on both the header and the body).
    If having manually recompiled the package, I re-execute my
    <cfstoredproc>
    call, it works fine.
    If I re-run the process, and the simply recompile the header
    before trying
    the <cfstoredproc>, I get this error:
    [Macromedia][Oracle JDBC Driver][Oracle]ORA-04068: existing
    state of
    packages has been discarded ORA-04063: package body
    "myDB.myPkg" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at
    line 1
    If I then recompile the body too, and then call my
    <cfstoredproc>, it all
    runs fine.
    I have added the following two addition <cfquery> calls
    after my first two:
    <cfquery name="qTemp" datasource="#dsn#">
    alter package pkg_tree compile package
    </cfquery>
    <cfquery name="qTemp" datasource="#dsn#">
    alter package pkg_tree compile body
    </cfquery>
    And they execute fine, but do not affect the results (ie: I
    still get the
    same erroing behaviour).
    If I copy and paste my <cfquery> code into Oracle SQL
    Developer and execute
    it, it all works fine.
    Anyone encountered this before, and know what I'm doing wrong
    (or what -
    additionally - I need to do to complete the job)?
    Cheers for any thoughts.
    Adam

    PS: The user I am using to connect to the DB is the same one
    whether via CF
    or Oracle SQL Developer, in both cases, and said user has
    full DBA
    priveleges.
    Adam

  • Problems creating packaged .h files with javah -jni

    I have all of my .java and .class files in package ClassLib.Satrack.
    My directory structure is C:/SatrackIIP/NavComponent/ClassLib/Satrack.
    I compiled all java files by calling javac ClassLib/Satrack/*.java from NavComponent directory. Then still from NavComponent directory, I call javah -jni ClassLib/Satrack/TrajectoryGenerator. However I am getting an error message:
    Error: Class ClassLib/Satrack/TrajectoryGenerator could not be found.
    Why am I getting this error?

    Fixed it. I should be calling javah -jni ClassLib.Satrack.TrajectoryGenerator and not using dashes in between.

  • Problems creating package...

    Hi..
    I've really gone bonkers breaking my head over this package related problem.. Wd greatly appreciate if someone can help me out.
    Here is the code:
    //Test1.java
    //location: c:\mydir\jawa\examples\fd
    package jawa.examples.fd;
    public class Test1
    Test1()
    System.out.println("Inside constructor..");
    void method1Test1()
    System.out.println("Inside method1Test1.");
    public static void main(String[] args)
    Test1 t1 = new Test1();
    t1.method1Test1();
    System.out.println("Inside main of Test1.");
    Quite simple, this code works fine as long as I introduce the package statement.. It compiles fine, but at runtime it throws a bunch of errors:
    C:\mydir\Jawa\Examples\Fd>javac Test1.java
    C:\mydir\Jawa\Examples\Fd>java Test1
    Exception in thread "main" java.lang.NoClassDefFoundError: Test1 (wrong name: jawa/examples/fd/Test1)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    C:\mydir\Jawa\Examples\Fd>java -classpath c:\mydir Test1
    Exception in thread "main" java.lang.NoClassDefFoundError: Test1
    Don't know why it fails to recognize Test1.class file sitting under c:\mydir\jawa\examples\fd..
    However, it does run fine from C:\mydir
    C:\mydir>java jawa.examples.fd.Test1
    Inside constructor..
    Inside method1Test1.
    Inside main of Test1.
    Any idea what's happening and why I'm facing this problem? I'm running jdk1.4.2, i also have Oracle9i installed, guess it has jdk1.3.1 bundled in it.. I don't see classpath in the list of environment variables..
    Thanks in advance!!

    Sorry, I tried to answer without reading all the way through.
    The JVM does recognize the class file. This command
    C:\mydir\Jawa\Examples\Fd>java Test1
    tries to run Test1.class and discovers that the package is wrong. The JVM gives you an error to that effect. This is the way packages work. Maybe I don't understand your question.

  • Specifying package structure and inheritance for jaxb generated classes ??

    Friends,
    Now I am tuned up with the sweet JAXB utility...
    I need answers to this..
    1. How do I specify a package structure in my generated java files?
    2. How do I specify inheritance heirarchy to my generated java files ?
    I assume, there must be some way of doing this, without opening the actuall source.
    any ideas ??
    Thanks
    Rakesh

    how about inheritance heirarchy ? What if i plan to include theses generated classes in my inheritance heirarchy ?
    Bhakti, any idea what is the final version release date ? I desperately need answer to this.
    Thanks
    Rakesh

  • Why does Encore keep crashing and where are the media files?

    I am having big problems with Encore right now.  I have developed a rather complex DVD with something like 20 movies on it.  The video files associated with these movies are all in .wmv format; about 4gb total in size and are stored on an external drive as is the Encore file with which I am authoring this DVD.  This drive has a USB connection to my computer which I know is not the best but I have managed to author an earlier draft of this DVD no problem.
    The problem now is that Encore keeps crashing.   Also, in the process, a lot of disc space is eaten up on my "C" drive.  I don't know why this is and where to go to delete these files.  I have defragged my computer and my anti-virus scans are up to date.  I am running a windows XP Home Edition O/S with an Intel pentium 4 CPU, 2.79 ghz with 2.5 gb of RAM.  I went to edit>preferences>media>location in Encore and got that my media files are on my C drive in Adobe>library but, when I looked, they didn't seem to be there.  Super frustrating!   Also my computer is super-slow too.   I deleted all temp files and there is no spyware to speak of, according to my virus scan software (Panda).
    Does anyone have any ideas as to how to address this problem?  Many thanks!
    Lewis

    Ah yes... CS4... if the OP is using CS4, the Roxio update is needed
    Encore CS4 Roxio component problem http://forums.adobe.com/thread/400484?tstart=0
    More on Encore and Roxio http://forums.adobe.com/thread/528582?tstart=0 or direct to
    http://kb.roxio.com/search.aspx?URL=/content/kb/General%20Information/000070GN&PARAMS
    Also
    Long File Names Cause Crashing http://forums.adobe.com/thread/588273
    And #4 Here http://forums.adobe.com/thread/666558?tstart=0
    And This Message Thread http://forums.adobe.com/thread/665641?tstart=0

  • Problem creating several image maps (linking to different pdf files) RoboHelp 8

    Hi,
    I have a problem creating several image map hotspots (that link to different .pdf files), from the same image using RoboHelp 8 HTML (WebHelp project).
    After compiling, the first image map hotspot created, opens the .pdf file correctly.  Unfortunately, when clicking on the other image hotspots, I get an error " Cannot find file...<file path>... Make sure path or Internet address is correct".
    All the pdf documents are located in the same folder within the project.
    Can anyone help?

    Have you added the target files as baggage?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to create and exe from a class file.

    I want to create an application and want to distribute it. I am using simplw awt gui interface. I have compiled the program and have got the required class file. If I want an executable how can I go for it.
    There are many files provided by java library which are exe but are created using java API eg. policytool.exe. Please Help.
    Ashwini Bagga,
    Jaipur(Rajasthan)
    INDIA.

    Java uses the JVM to parse the class files. It cannot be converted to a .exe file
    but if you want to distribute it, i suggest you use InstallAnywhere which makes it into an exe installer.
    In the end it still uses the virtual machine...
    If i am wrong anywhere pls correct me thanks...

  • How to create Schema Header and footer with Pipe delimiter file..?

    Hi all,
    I have issue with creating Schema Header and footer with body file ..The file format is Pipe delimiter.. The follwing file below like is...
    Adapters:File Adapter(Read)-11g.
    1|000|2025|SDFG|54787
    1|2055|244|9566|000|000|044|2577|361147|45554|wweqw|52555|564|000|647|464
    1|2027|344|4566|000|000|044|8577|361147|45554|wweqw|82555|564|000|647|844
    1|2024|444|6566|000|000|044|9577|361147|45554|wweqw|12555|564|000|647|544
    1|2023|544|8566|000|000|044|5577|361147|45554|wweqw|52555|564|000|647|442
    1|2022|644|3566|000|000|044|7577|361147|45554|wweqw|02555|564|000|647|448
    1|0000|546|25544|454
    If you have sollution for this, please help me out..Thank you.

    You mean how many rows or columns..?
    If coloumns means 5 and rows only one(1).

  • Error when Compiling package header and body - how change pkb file associat

    Hi everyone,
    it has already been noticed elsewhere (in the thread "Compiling package header and body" of Jan 12, 2010) that the compilation of package scripts sometimes fails (apparently because of a sqldeveloper bug) when the script contains the terminating slash /.
    Is this bug still open?
    Next question: In the above mentioned thread it is recommended as workaround to change the corresponding file type association from pl/sql to sql. I would like to do that; I know the place in the preferences dialog, but most of the associations there seem to be hard coded and cannot be changed.
    I would appreciate any ideas!
    Thanks in advance,
    user8632123.

    For the workaround: you'd have to change the file's extension, not the association (to e.g. .sql).
    Have fun,
    K.

Maybe you are looking for

  • User name in Email Settings

    Dear Sir/Madam, Just got blackberry 8300 and activated blackberry service today with du in UAE. I did not create any user name or password in email settings. However, whenever I enter Email settings screen, it states 'Existing Users' and prompts me t

  • Final Cut Pro X Not Working

    Whenever I try to insert a file more than 15 mins it won't work and final cut pro x freezes and then says it has quit unexpectedly, does anyone know a solution for this?

  • Where is itunes device backup stored on Mountain Lion?

    Device backups used to be stored in the Library/Application Support/Mobilesync folder. In Mountain Lion, I do not have a Mobilesync folder. Anyone know? Thanks!

  • Attempt to Burn Disc Error 4280

    Everytime I try to burn my music on to a CD or back up my files to a CD I get this error message, please help.

  • Module interacting with LMS incorrectly

    Hello Can anyone help me with my following issue. My LMS software requires no intercation from captivate 5 module and only reports on the score. I have set this in the scorm settings to report scores only and pass/fail etc but when the module is comp