Compile source file problem using Windows ME

After editing the variable value PATH to,
c:windows;c:\windows\command;c:\jdk1.3.1\bin and saving file HelloWorldApp.java(from First Cup of Java;Sun tutorial)to c:\java .I proceed with the tutorial but haven't got a clue what command to put after c:\windows> (in the MS-DOS Prompt window I am now at)..in order to view HelloWorldApp.java so that I can compile.(I've tried putting cd as per tutorial but get 'bad command or file name' appearing on the screen).
Detailed help very much appreciated!!

If I may ask:
How new to java are you?
I remember the feeling well.
If you have installed the java SDK and set your path, then restarted your machine so that the startup process recognizes your new path.
... probably done, since time has gone by...
Then saved your : something.java file to a directory.
You start a dos session and navigate to your :
C:\documents\javaStuff directory where you will see:
Something.java exists.
Then you ask the java compiler to compile your code with:
javac something.java
which creates something.class
[look familiar from the first line    class something{  etc.
then run the program with:
java something   [ it knows to only run a .class file]
Is this the level of information which youseek??
Hope so!
Remember! Stay in the Puzzle Somehow!

Similar Messages

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

  • Problem compiling source file in package

    Hi, I have 5 source files which I have just packaged together and put in the same sub-directory, the problem is that when I try to compile the file with the main method I get the error message:"cannot read" then the name of the source file. I am compiling from the command line and setting the classpath as I compile with the statement:
    c:\j2sdk1.4.1\bin>javac -classpath c:\directory\package directory source file.java
    I'm not sure what I am doing wrong and the source files all compiled fine before I added the package statement to the files. Please any help would really be appreciated.

    It sounds like the java file your are trying to compile is not in the directory you are compiling from.
    Is this basically what you are doing?:
    Say the package name is mypackage.
    Assume we are O.K. with keeping source and class files together.
    Create a directory named 'mypackage' somewhere...C:\mypackage\.
    Put all the .java files in it (these .java files indicate that they are a member of the 'mypackage' package).
    At a command prompt, cd to the directory containing the 'mypackage' directory...'cd C:\'
    Compile the source files: C:\j2sdk1.4.1\bin\javac mypackage\*.java
    run the main class: C:\j2sdk1.4.1\bin\java mypackage.TheMainClass
    Basically, this says keep the files where you want them and point to javac, instead of moving everything under java/bin. btw it will save a lot of typing if you add java/bin to your PATH.
    Hope this helps.

  • Problems using windows media player to transfer files to zen x

    All 9gs of my music is stored in windows media player music library.transferring it to zen xtra has caused many cds arriving at player with wrong content under different artists and some songs copied many times over. Is there a known conflict using windows player and zen xtra?I would use mediasource but my cds imported to ther interface with many not identified even thogh all my music was clearly labeled with artist, title and gnere in windows music library.Any help would be great. I cant get my 9gs of music into the zen without content mess u
    ps.
    thanks matt

    I, for one, am incredibly dissapointed in the portable file aspect of this player. i work in a PC store and we sell the Zen Touch , i also received one for christmas. At first i was very happy that i could also use it to carry my files to and from school but all my hopes were extinguished when i realized that the computers i would transfering to and from had to have the creative software installed. Obviously, Creative's target consumers are of the Student generation, so they must have known that we, as students , use computer labs in school. So why not add the firmware to override the creative software when transfering data files? What's written on the box and the sales pitch creative uses is extreamly misguided and alot of the buyers have come back to the store with complaints. They arn't happy, i'm not happy, creative should fix this porblem, and yes it is a problem and not "part of the design".

  • Compiling source files in directory separate from JDK

    I'm trying to switch from Visual Cafe to a more agnostic platform: just using a text editor and then compiling and running with Sun's JDK. The problem is that I can't actually get my programs to compile and produce class files. I suspect a Classpath or directory structure problem, but I don't know how to attack this.
    I am running Windows 2000, and the JDK is sitting at C:\j2sdk1.4.0_01. I'm keeping my source files at in a separate directory at E:\New_Java_Files. When I try to compile a source file in this directory, I don't get the resulting class files even though it compiles (that is, javac does not give any errors). On the other hand, when I compile the "Hello World" app in this same directory, it does produce a class file and then I can run it.
    Any suggestions?
    Thanks, Yao

    If javac is actually running, and you don't tell it to stick your files somewhere else, it should create .class files in the same directory as the .java ones.
    My guess:
    Since javac succeeds, either the .class files end up in some other location, or you're somehow compiling a different version of your file in a different location. Try searching for any instances of yourclass.class

  • Cannot compile source file with Ctrl-F7 in VS 2008

    I have added an existing .cpp file to my project.  When I want to compile
    only one file, I usually press Ctrl-F7, but that does not work on this file (it works on some other source files).  When I pull down the Build menu, the Compile option is missing, like it is when a header
    (*.h) file is active.
    When I right-click on the source file in the Solution Explorer, the context menu shows "Compile\tCtrl+F7"; I can compile a single source file that way, but Ctrl-F7 is so much easier and faster.
    I have tried resetting the keyboard shortcut, resetting the profile to the original C/C++ profile, and closing and reopening Visual Studio, but nothing corrected the issue.
    It feels like VS is not recognizing that my source file is a C++ file, despite its name (something.cpp).  Why has this started happening, and how can I get the shortcut (and Build menu) to reset?

    This happens in the following way.  You manually create a new C++ class in an existing project using the editor in VC++.  You then (with the editor still open) add the file to your project.  Visual Studio finds your class info
    and adds it intellisense, making it seem as though VC++ knows your file is in the project.  However, it does not and ctrl f7 will therefore not work.  Removing and adding the file does not help...unless you close the editor window...in which
    case VC++ will correctly add the file if you remove and add it to your project.
    This is not an uncommon way to create a new class - one does not always use the VC++ create class option.  The manual creation method may be preferable if you are not using automated features from VC++ and instead want to copy some code
    from another file, headers for example.   My view is that this is a VC++ bug that should be repaired; apparently VC++ thinks the file is already included if it is open in the editor rather than checking its file list.  But it is easy
    to work around once you know what is happening.

  • HT1751 After "Restoring iTunes Library Backup" it wont link to the files in the iTunes folder. I've followed the correct procedure, and iTunes lists all my music correctly (but with no artwork), but can't locate any of the files. Using Windows 7. Help ple

    After "Restoring iTunes Library backup" it wont link to the files in the iTunes folder. I've followed the procedure as described, and the iTunes folder is in the correct location. iTunes lists all my music correctly (albeit with no artwork), but can't locate any of the files.
    I've been restoring my iTunes folder from a backup hard drive to a new computer on which I've downloaded the latest iTunes (10.7). If this is a newer version than the one I backed up with could this be the problem? (I had the latest (to my knowledge) iTunes when I backed up the folder about 3 weeks ago, was this version 10.7?)
    Or is the version of iTunes (within recent updates) not an issue when restoring a library?
    Using Windows 7.
    Any help please?

    From the top of the page where the scripts live...
    The general method of use is to download the script to a folder of your choice, e.g. your Desktop, Downloads folder or create a folder at ...\iTunes\Scripts. Select a playlist or highlight some tracks in iTunes and then double-click on the script to execute it. If no specific tracks are selected the script will try to work with all tracks in the current playlist. Some scripts offer a choice of track by track confirmation of changes or fully automatic processing of the selection. Many of the scripts can optionally display a progress bar while running.
    You are strongly advised to backup your entire library, or at the very least the iTunes Library.itl file, before use. Test the behaviour of your chosen script on a small group of files first to make sure it does what you want before applying it to large numbers of files.
    Most builds of Windows will execute *.vbs scripts when you double-click them. If that doesn't happen then you might need to visit the Add/Remove Programs or Programs & Features control panel to enable the Windows Scripting Host. I can track down details if you have issues.
    Backing up and restoring data is an area that is often glossed over. Most people don't try to learn much about it until they've lost something important. (Me too )
    If your iTunes library was in the usual layout then normally copying the whole iTunes folder from the User's Music folder in the old computer to the User's Music folder in the new one will usually work fine. Ideally this is done before iTunes is installed so that there is no empty library to replace, and all settings are picked up from the old library. This post contains more details.
    tt2

  • Problems using window.close() and setting fields

    Hi,
    I have two problems:
    First one is:
    I created a simple JSP with 'Save' and 'Exit' Buttons. In the Exit button on click event I invoked a function closeWindow, which calls teh window.close(). But on clicking Exit, the window does not close. Can anyone please tell me why.
    Second one is:
    The JSP also needs to get loaded with some values in the Textfields. Theses values are extracted from a text field using a Java class. I am able to see that these values are extracted from the text file and are loaded into Java vars, but when I am trying to set this value into a text field, it is NOT getting set.
    (filePathDetails is the instance of the class that extracts the text values)
    The entire code is posted below:
    <%@ page language="java" import="ftpScheduler.*" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <% FolderPathInfo filePathDetails = new FolderPathInfo(); %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>PATH DETAILS</title>
        <SCRIPT type="text/javascript">
         function setPaths(){
              with(document.pathDetails){
                   textAncPath1.value = <%=filePathDetails.localDirPath1 %>;
                   textAncPath2.value = <%=filePathDetails.localDirPath2 %>;
                   textArchivePath.value = <%=filePathDetails.archiveDirPath %>;
                   textLogPath.value = <%=filePathDetails.logFilePath %>;
         function closeWindow(){
              window.closeWindow();
        </SCRIPT>
    </head>
    <body bgcolor="#c0c0c0" onload="setPaths()">
         <FORM name="pathDetails" method="get" action="DetailsServlet.java">
         <FONT face="Arial" size="3"><STRONG>Directory Paths:</STRONG></FONT>
           <BR><BR>
           <TABLE border="0" cellspacing="" height="60" width="450"
                                                        style="FONT-SIZE: 10pt; FONT-FAMILY: Arial" align="center">
           <COLGROUP>
           <COL width="45%">
           <COL width="55%">
           </COLGROUP>
           <TR>
           <TD><LABEL>Ancillary Transmit Path1 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath1" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Ancillary Transmit Path2 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath2" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Archive Path :</LABEL></TD>
           <TD><INPUT type="text" name="textArchivePath" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Log File Path :</LABEL></TD>
           <TD><INPUT type="text" name="textLogPath" width="290" maxlength="350"/></TD>
           </TR>
           </TABLE>
           <P align="center">
              <INPUT type="submit" name="buttonSave" value="Save">
              <INPUT type="button" name="buttonExit" value=" Exit " onclick="closeWindow()">
              <BR>
           </P>
           </FORM>
    </body>
    </html>Please help me.
    Thanks in advance.

    Try the following..
    For problem 1:
    Use window.close() instead of window.closeWindow().
    For the second problem
    don't call the function setPaths() at onload. Rather
    call the function after the page is loaded. You can
    try like this.
    If it doesn't work then check whether the browser is
    giving any JavaScript error message.
    <SCRIPT type="text/javascript">
    setPaths() ;
         function setPaths(){
         alert(document.pathDetails.element[0].value);
    document.pathDetails.element[0].value =
    = <%=filePathDetails.localDirPath1 %>;
              alert(document.pathDetails.element[0].value);
              with(document.pathDetails){
    textAncPath1.value =
    e = <%=filePathDetails.localDirPath1 %>;
    textAncPath2.value =
    e = <%=filePathDetails.localDirPath2 %>;
    textArchivePath.value =
    e = <%=filePathDetails.archiveDirPath %>;
    textLogPath.value = <%=filePathDetails.logFilePath
    ath %>;
         function closeWindow(){
              window.closeWindow();
    </SCRIPT>Hi,
    Actually I did try window.close(), but I still am not able to close the current window.
    And as for the problem of setting up the field values, sorry the given solution doesnt seem to work. :-(..
    I have pasted the entire code, I dont know where teh flaw is. Please review the same and let me know.
    Your help is very much appreciated.
    <%@ page language="java" import="ftpScheduler.*" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <% FolderPathInfo filePathDetails = new FolderPathInfo();%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>PATH DETAILS</title>
         <SCRIPT type="text/javascript">
         function setPaths(){
              document.pathDetails.textAncPath1.value = "Anything";
              with(document.pathDetails){
                   textAncPath1.value = <%=filePathDetails.localDirPath1%>;
                   textAncPath2.value = <%=filePathDetails.localDirPath2%>;
                   textArchivePath.value = <%=filePathDetails.archiveDirPath%>;
                   textLogPath.value = <%=filePathDetails.logFilePath%>;
         function exitWindow(){
              window.close();
        </SCRIPT>
    </head>
    <body bgcolor="#c0c0c0">
         <FORM name="pathDetails" method="get" action="/FTPSchedulerApp/ftpScheduler/DetailsServlet.java">
         <FONT face="Arial" size="3"><STRONG>Directory Paths:</STRONG></FONT>
           <BR><BR>
           <TABLE name="tempTable" border="0" cellspacing="" height="60" width="450" style="FONT-SIZE: 10pt; FONT-FAMILY: Arial" align="center">
           <COLGROUP>
           <COL width="45%">
           <COL width="55%">
           </COLGROUP>
           <TR>
           <TD><LABEL>Ancillary Transmit Path1 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath1" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Ancillary Transmit Path2 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath2" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Archive Path :</LABEL></TD>
           <TD><INPUT type="text" name="textArchivePath" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Log File Path :</LABEL></TD>
           <TD><INPUT type="text" name="textLogPath" width="290" maxlength="350"/></TD>
           </TR>
           </TABLE>
           <div align="center">
              <INPUT type="submit" name="buttonSave" value="Save"/>
              <input type="reset" name="buttonReset" value="Reset" onclick="setPaths()"/>
              <button name="buttonExit" onclick="exitWindow()"> Exit </button>
              <BR>
           </div>
           </FORM>
    </body>
    </html>

  • Compile source files from multiple subdirectories

    Hi. we know that we can compile multiple source files in a folder with the statement:
    javac -classpath . *.java
    How can we compile multiple source files that belong to different subfolders without using an IDE?
    Example:
    folder1, folder2, & folder3 all have .java source files, and all 3 folders belong to a folder named bigfolder;
    what is the shortest way to compile those source files in one statement like the one above?

    It should work withjavac -classpath your_classpath folder1\*.java folder2\*.java folder3\*.javaJust make sure that your_classpath allows all of the classes to be found.
    It might be better to use the -d option in your case.javac -d path_for_classes folder1\*.java folder2\*.java folder3\*.javaYou just specify the directory into which the .class files and their package directories should go.

  • Compiling java files in DOS window

    Hi,
    I have been writin a small Client Server Application. I am attempting to use java packages in order to put certain class files into particular directories, and then import the packages when needed.
    So far, i have started my 1st attempt at a very small application just to send / receive messages. My problem is however, that i can compile all the java files into specific directories & packages no problem, but when i try to compile the java files which make use of these classes, i keep getting the same error.
    OK, i will try to simplify,
    My Server program (called MyServer.java) uses 2 classes (called ProcessTransaction, and NumberValidator), I have compiled the generated class files from ProcessTransaction.java and NumberValidator.java files into a DIR called C:\JavaForm\serverstuff. i.e. my server program imports the package "serverstuff,*;" The problem is that when i try to compile my server program i get the error message:
    "cannot access ProcessTransaction
    bad class file: c:\JavaForm\ProcessTransaction.java
    file does not contain class ProcessTransaction
    Please remove or make sure it appears in the correct subdirectory of classpath"
    I am using the command:
    javac -classpath c:\JavaForm c:\JavaForm\MyServer.java to compile the server file
    All the java and class files are stored in the C:\JavaForm folder
    I dont understand why the ProcessTransaction call cannot be accessed because it is most definitely in the compiled java file!!!
    Any help would be much appreciated!!!
    Cheers
    Iain

    it's OK, i figured out that to compile the Server program successfully, you have to remove all the other java files from the DIR which the Server.java files exists, or else there is a conflict!!!! I dont know why, but that's what you have to do!!!!

  • How to compile source file for CUPS ?

    Basicly im trying to install a POS printer in the imac we use with clients. The printer model is ct-s300 .I got this http://www.citizen-systems.co.jp/support/download/printer/driver/cups/ from citizen but i need to compile a file to be able to install it into CUPS. I downloaded Xcode to be able to use gcc but still not working .
    Linux command is gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2 -o rastertocbm1k rastertocbm1k.c -lcupsimage -lcups
    i tried changing -rpath to -B but still not working and i know nothing about compiling .Any help will be appreciate.
    Thanks

    Thanks a lot , now i got my compiled file but i got another problem . The steps to install this printer are
    Copy the CTS300.ppd file to /usr/share/cups/model/ directory.
    Execute the following command.
    cp CTS300.ppd /usr/share/cups/model
    Copy the rastertocbm1k file to /usr/lib/cups/filter/ directory.
    Execute the following command.
    cp rastertocbm1k /usr/lib/cups/filter
    Add a execute permission to the copied rastertocbm1k file in the /usr/lib/cups/filter/ directory.
    Execute the following command.
    chmod +x /usr/lib/cups/filter/rastertocbm1k
    Restart CUPS to recognize files.
    Execute the following command.
    /etc/rc.d/init.d/cups restart
    I did the first step but on the second the folder /usr/lib/cups/filter dont exist. I´ve been looking for it without look. Any clue on this one?

  • Thumbnail files problems in windows 8.1 , annoying me ?

    I use Windows 8.1 and every-time I open folders that contains Thumbnail files , especially PDF files , take a long time to load them in windows  explorer as if open that folder for the first time , and this also happen if I press refresh by  mouse
    , this problem annoying me , please help
    Mohamed Ahmed Database Administrator & Developer

    This web site is for help in writing apps, it is not for help in using Windows. 
    For help in thumbnail generation, contact the author of your default program for the pdf file format. 
    Visual C++ MVP

  • How to open multiple C source files in one window in Xcode

    I could not find the way for opening multiple source code in one window in Xcode.
    Is it possible?

    Yes that was my question, thank you very much...
    you mean like in tabs or somethign? I don't quite
    understand your question. If everything is in one
    project, you can switch your file viewer to editor
    mode by clicking on Editor in the top left and then
    navigate through your files with the left tree.

  • How to overwrite source files, or use source file names?

    Hi all
    I would like AME (5.5.1.12, under Windows 7) to overwrite the source files that it is encoding, or if that's not possible, save the exported files to a different folder with the same file names as the sources.
    However I can see no way to do this without manually specifying a file name for every file. I need to process 400 files so this is not practical.
    Currently AME automatically adds a "-1" suffix to the exported file name, whether it's saved in the same folder as the source or a different folder.
    Can anyone advise, please?

    Hi Jim,
    Thanks for the reply. However, overwriting source files during a batch process is a common feature in audio/video software. It's possible in Audition, for instance, as well as in third-party programs such as Sound Forge, Wavelab and Samplitude.
    Presumably in these cases the software writes to a temporary file, either in RAM or on the hard drive, before deleting the original and replacing it with the new one.
    I'm surprised to hear that AME can't do this for conversions that stay within the same file format (such as the bit depth of a wave file).

  • Problem using Windows Media Player 10 to put music on my Muvo V

    <FONT face=Century size=3>Please Help
    I hvae just bought a Creative Muvo V200 GB. I have tried using Windows Media Player 0 to load songs onto it. It goes through the motions and syncs ok and when I check 'removable' on Windows Media it shows that the songs are on there. However when I turn the MP3 Player on it registers 'no music'
    I tried wiping the player by downloading the firmware and starting from scratch but still get the same problem.
    Just don't like the layout of Creative so would really appreciate some advice on how to fix Windows Media.
    Thank You
    Eilish

    Eilish wrote:
    <FONT face=Century size=3>Please Help
    I hvae just bought a Creative Muvo V200 GB. I have tried using Windows Media Player 0 to load songs onto it. It goes through the motions and syncs ok and when I check 'removable' on Windows Media it shows that the songs are on there. However when I turn the MP3 Player on it registers 'no music'
    I tried wiping the player by downloading the firmware and starting from scratch but still get the same problem.
    Just don't like the layout of Creative so would really appreciate some advice on how to fix Windows Media.
    Thank You
    Eilish
    Thanks for that piece of information. Player is definitely working as I have about 20 songs on it through realplayer.
    Put a folder of new songs on desktop and a shortcut to my Muvo V200 but when I try to drag and drop it won't let me. All songs on the Muvo are in the root folder. Am I doing it the proper way? I'm afraid I'm a bit moronic when it comes to computers so if you can be patient perhaps you might like to send it again to me idiot speak.
    Really appreciate it
    Eilish

Maybe you are looking for