Eclipse running under JRE

Hello gurus...
I have seen eclipse working under JRE only. But how it can compile java files to class files if there is no javac.
any clues???

phoenix-supratim wrote:
But could you be more specific. Exactly which compiler you are talking about.The eclipse compiler. I don't know how to be more specific than that. They have created their own compiler so you don't need a JDK to use it (and possibly for other reasons).
Is there any other compiler available to compile java files to class files.Well, I guess OpenJDK have their own compiler too.
If that is the case then for running jar files it needs a JVM. And if a JVM is already there in eclipse it should'nt have asked for a JRE in the first place.[Eclipse atleast need a jre to run]I didn't say Eclipse has its own JVM. I said it has its own compiler. It requires a JRE because JRE contains the JVM that is used to run any Java programs.
Another thing I would like to know. I have added MAVEN plugin in my eclipse. I noticed that when eclipse working under JRE only, MAVEN gives warning that a jdk JVM should be there to successfully run MAVEN. Beacause it needs some jar files from JDK. Exactly which jar files does MAVEN need from JDK and which way those jar files are different from JRE jar files.JDK has additional libraries that the JRE doesn't have.
Because all the jar files JDK have to initialize and run a JVM are all there in JRE.JDK includes the JRE, which includes the JVM. And the JDK does have things that the JRE doesn't (like the compiler).

Similar Messages

  • Programed in Eclipse, runs under Eclipse doesn't run from command line

    Hi,
    have created a small Java program under Eclipse. When I right click on the package and select Run As: Java Application from the IDE the program starts fine.
    On the other hand if go from the command line ( I'm under WinXP ) and I type java ProgramName under the directory which contains the .class and .java file I get an exception message saying: Exception in thread "main" java.lang.NoClassDefFoundError: ProgramName ( wrong name: ProgramName/ProgramName ) followed by a stack trace type thing.
    If I do java ProgramName.class or java ProgramName.java I get a shorter but similar message saying:
    Exception in thread "main" java.lang.NoClassDefFoundError: ProgramName/Class
    I don't know what could be wrong, at first I thought about the PATH variable but it doesn't seem to be the case.

    Hi Sarah
    Thanks for replying and sorry for the delay - been on holiday :-)
    I am not running any security additions, just a vanilla Fedora 5 Linux installation.
    Does anyone have any suggestions as to where I may look to solve this problem as I am at a loss at the moment.

  • Problems with signed Applet for File Download under JRE 1.4 (works with 1.3

    Dear all,
    i encountered a very strange behaviour with JRE 1.4x. A signed applet used for file download worked on all platforms (Windows NT, 2000 and XP wth/wthout SP...) until I installed JRE 1.4.x (1.4.1 or 1.4.2)
    I get an EOFException when downloading binary files (for ASCII it works fine) when trying to readByte() from a DataInputStream. But not immideately, but after x bytes in the while-loop. Security is fine (I know there have been changes to that in jre 1.4, the applet itself can be started an runs with ASCII files for transfer)
    Does anyone know, what has changed in jre1.4.
    As I said, it works fine under jre 1.3.x
    The relevant code is below: byte bt = dis.readByte(); causes the error
    try{
    // Get URL from Server
    URL uFile = new URL(sFilename);
    sThisURLFile = uFile.getFile();
    Integer inte = new Integer(i);
    //open input stream for the file on server
    DataInputStream dis = new DataInputStream(new BufferedInputStream
    (uFile.openConnection().getInputStream()));
    //open output stream for the file on local drive
    String sFilenameOnly = sThisURLFile.substring(sThisURLFile.lastIndexOf('/')+1);
    int iDotPos = sFilenameOnly.lastIndexOf(".");
    String sExt;
    if (iDotPos > 0) {
    sExt= sFilenameOnly.substring(iDotPos);
    } else {
    sExt = "";
    File fileOut = new File(sDownloadDir + sThisURLFile.substring(sThisURLFile.lastIndexOf('/')+1) );
    DataOutputStream dos = new DataOutputStream(new
    BufferedOutputStream(new FileOutputStream(fileOut)));
    //read one byte from input stream, and write that byte to output stream
    long nByte = 0;
    int iCnt = 0;
    iFilesizeDone ++;
    while (nByte < iFilesize){
    String sErrPs = new String();
    try{
    sErrPs = "00";
    byte bt = dis.readByte();
    sErrPs = "01";
    dos.writeByte(bt);
    } catch (EOFException ee)
    System.err.println("internal EOFException: " + ee.getMessage());
    System.out.println("Error Filesize is " nByte " of " iFilesize "---" + sErrPs);
    break;
    nByte++;
    iFilesizeDone ++;
    iCnt ++;
    if(iCnt >= 10240) {
    ShowProgress(nByte, iFilesize, iFilesizeDone, iFilesizeTotal); // repaint does not work during init-procedure
    iCnt = 0;
    line = "Progress: Total: " + ((iFilesizeDone*100)/iFilesizeTotal) + " perc, " + iFilesizeTotal/1024 +" kbytes" ;
    labLine.setText(line);
    //dos.flush(); // improves Client performance (Agent-Call!)
    dis.close();
    dos.close();
    }// End try
    catch (EOFException ee)
    System.err.println("EOFException: " + ee.getMessage()e);
    catch (SecurityException se)
    System.err.println("SecurityException: " + se.getMessage());
    catch (IOException ioe)
    System.err.println("IOException: " + ioe.getMessage());

    perhaps they've changed something with the file blocking.
    btw, you should try to use something like this
    DataInputStream dis = new DataInputStream(is);
    byte[] buffer=new byte[8192];
    int numBytesRead;
    while ( dis.available()>0 ) {
         numBytesRead = dis.read(buffer);
    }               

  • SSO to partner application running under IIS

    Hi,
    We have a complete set-up for 9iAS Release2 where some applications are running. In parallell we have an application running under IIS, and would now like to enable the IIS application as a partner application to 9iAS letting the 9iAS SSO server handle the authentication.
    In the documentation of Oracle Proxy Plug-in I read that this proxy plug-in can be used to proxy requests from IIS to Oracle http server (OHS) and also in this way enable SSO.
    My question is if this can be done only for applications running under 9iAS but having IIS as web server, or if it is also possible like in our case to enable SSO via the proxy plug-in to applications runnind under IIS?
    If this is not supported is the only available solution to use the SSO SDK in my IIS application?
    Thanks and regards,
    Rikard

    Here's a DIY answer.
    See Metalink Note 269820.1 which shows you how to use Perl to overwrite the host name in the HTTP header and remove the port number.

  • How to allow access to web service running under ApplicationPoolIdentity

    Hi All,
    I have a WCF web service hosted in IIS 7 (or maybe 7.5, whichever comes with Windows server 2008 R2) using DefaultAppPool running under ApplicationPoolIdentity per Microsoft's recommendation. The web service needs to call a stored procedure to insert data
    to a db. The web server is on a different VM than the database server. The db server is running SQL 2008 R2. Both VMs run Windows server 2008 R2.
    When the web service tries to connect to db, it encounters this exception:
    Exception in InsertToDb()System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    Here's the connection string in web.config:
    Application Name=somewebservice;Server=somewebserver;Integrated Security=SSPI;Database=somedatabase;Connection Timeout=60"
    How should I configure SQL security to make this work?
    Thanks in advanced.

    Thanks for the link Dan. Maybe I'm the one who cause the confusion :)
    If I understand you(and Erland) correctly, you suggest using a custom, domain account for application pool identity. However, if we do that, our IT will need to maintain those accounts, and they don't  want that. So I'm choosing a built-in account called
    ApplicationPoolIdentity as the application pool identity, but it's not working. Network Service, on the other hand, works, but my boss wants us to follow MS's best practice.
    What's puzzling is that according to this: http://learn.iis.net/page.aspx/624/application-pool-identities/, both Network Service and ApplicationPoolIdentity uses machine account to access network resource (like db in this case), but in my case, Network Service
    works, but not ApplicationPoolIdentity.
    Hallo Stephen,
    with respect - it seems to me that only idiots are working at your IT ;)... It is absolutely useful to work with "service accounts" created within the domain. That's the only way to manage and control accounts!
    If you want to "pass through" the identity of the web user (SSO) you have to check whether the app pool is set to "allow impersonate". As far as I understand the ApplicationPoolIdentity-function the app pool will create a unique user named as the service.
    I assume that will not work with the connection to the sql server because this user is unknown.
    Local Service will not work because it's restriction is located to the local machine.
    Network Service will work because access to network resources will be available.
    So my recommendation is to use a dedicated service account or impersonation:
    http://msdn.microsoft.com/en-us/library/xh507fc5.aspx
    Uwe Ricken
    MCITP Database Administrator 2005
    MCITP Database Administrator 2008
    MCITS Microsoft SQL Server 2008, Database Development
    db Berater GmbH
    http://www-db-berater.de

  • Global data getting reset when running under IIS?

    We have a scenario using IIS with an ASP.NET web service written in VB.NET. When a call to the web service is made, the web service calls a native dll (written in C, compiled using VS2010) using platform invoke, which in turn calls into our product API:
    VB.NET web service -> native library (p/invoke) -> native API ....
    Web service requests are successfully completed and the system runs without problem for hours. A trace of the native API shows it is being called by multiple processes and multiple threads within those processes.
    The main native API dll contains a static global variable used to detect whether it is the first time it has been called and run initialization logic if it is. This dll is itself linked to a second dll that contains a global variable used to detect if it is
    the first time it has been called.
    After some hours the trace shows that the native API is invoked by an existing process but that the initialization logic is being exercised again, even though the global variable was set to indicate not first time and is never reset.  One theory was that
    the first process has ended and a new process has started almost instantaneously using the same process ID. However this is not the case as existing thread IDs from the same process are seen to write to the trace again after the first time logic has executed
    for the second time, indicating the process has not restarted. The problem occurs regularly.
    It is as though the process's global data has been initialized again and malloc'ed memory freed while the processing is still running. Is there any way this is possible when running under IIS?
    There is an internal thread which waits on a blocking read of a named pipe (via ReadFile), and when the problem occurs, the ReadFile call ends with ERROR_NO_ACCESS, which appears to indicate the malloc'ed buffer is no longer valid, again implying something
    has happened to the memory allocated to the process.

    Suggestting you asking it on:
    http://forums.iis.net/

  • RE: How to have multiple application running under one server

              I have one server
              I have many application
              Question: Is it possible for me to have a weblogic properties file under each
              of this application.
              

    If your question is whether you can run multiple instances of WebLogic
              (or multiple applications) on one server, the answer is yes. The only
              problem is, you must have a unique port for each of the servers to run
              on. I.e., they can not all run under port 80 which has obvious
              internet/network implications.
              This also means you have multiple weblogic.properties files etc. for
              each instance.
              We do this with WL5.1 on a Linux 2.4 kernel in developement to allow
              multiple developers run their own instance on one box.
              Dano
              Mettu Kumar <[email protected]> wrote in message news:<[email protected]>...
              > No if you are running single instance of wls.
              >
              > Kumar.
              >
              > Sonny wrote:
              >
              > > I have one server
              > > I have many application
              > > Question: Is it possible for me to have a weblogic properties file under each
              > > of this application.
              

  • JavaSoundRenderer now running under Windows

    Hello,
    I found out that the JavaSoundRenderer could run under Windows but only if you use Java 6.0 Beta.
    So if you've problems of playing audio in Windows then just install the new Java (6.0) and it will work.
    best regards,
    thomas

    Hi,
    Refer [SAP Note:1337708 - Crystal Reports support of 64 bit Operating Systems|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333333333337333733303338%7D.do] and also have a look at
    [SAP Note:122050-An error has occurred while attempting to load crystal reports on 64bit|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233323330333533303331%7D.do] might be helpful

  • Installing XP, running under VMWare

    I am brand new to a Mac, and have found the Mac Pro I received a week ago was great to upgrade. Adding both memory and a new Caviar Black 1T drive this morning was the quickest/easiest upgrade I've ever done.
    I am currently formatting the new drive I just installed. The Format settings are Mac OS Extended (journaled), and the erase option was set to Zero out the data - I'm assuming this will ensure bad blocks will be marked as they are found - *Out of curiosity, does the disk utility mark bad blocks when found during the Zeroing out process?*
    I'm hoping to avoid problems with the way the drive is set up prior to installing VMWare, XP, and moving files onto the drive.
    Does VMWare Fusion deal with the format differences between what XP expects (NTFS) and the HFS+ format of the new drive? If not, do I need to do anything to handle this issue?
    Secondly, I want to load XP from my MSDN disks - All of the Microsoft operating systems are contained on the MSDN disks. Anybody know if this will cause an issue?
    Should I install XP for both VMWare and Bootcamp? Or can I run fine with a single copy running under VMware?
    Thanks in advance,
    Michael

    Zeroing with OS X Disk Utility seems very iffy and not as good as if you use vendor supplied utility which runs in Windows. I've even done 7-way write in Disk Utility and the drive showed problems.
    I suggest you try something else than DU. MicroMat TechTool Pro seems able to identify weak or bad sectors, does not have means to remap. Intech Speedtools should be able to, and may, but that's another $89.
    LIfeguard from WD, Seatools from Seagate... those are better.

  • Endianness when running under Rosetta?

    Hi all,
    I have a Carbon application which is reading binary data from a file's resource and then has to work with that data. I know the endianness of the data on disk so I used to do a byte-swap when necessary (after using ReadPartialResource() to get the data into my variable).
    I dutifully converted all those unconditional byte-swaps to CFSwapInt32BigToHost() in order to make sure that things work correctly when running on an Intel machine (since the application is not universal, the app is running under Rosetta on Intel machines).
    Today I tested the application on an iMac Intel CoreDuo (in my local Apple Store) - things worked just fine. However, even the old version with unconditional byte-swapping works correctly...
    Does this mean the "Host" on in Intel machine is still big endian? Anybody can corroborate this or point me to documentation of this behaviour?
    Thanks,
    Andreas

    Hi,
    to support the other posters intention: I would not need an emulator, if any code could be run between to processor types. If I have an emulator, it has to give a complete emulation of one processor another. If VirtualPC would have used BigEndians, no wndows would have ever started on those. So the other way round I assume that Rosetta will think Big (in Endianess).
    Volker

  • Dropbox process running under root.

    Hello people i just checked activity monitor for a process and i saw the process "dbfseventsd" and i google it and it came up that it is a dropbox process, and it was running under the root user and it was a 32bit process. Can anyone tell me why that process was there note the process is not always there when i use dropbox.
    Thanks
    Alex

    Hello All
    Since a couple days, in my Home appears DCQd7rmUW9.tmp. It is a temp file produced by dbfseventsd but operated by Java. It is a DropBox process anyway?

  • Managed Client running under root

    Hi
    Can any one of you here tell me what is Managed Client???
    I saw that one in the Activity Monitor and it is running under root account.
    Is this one of the Apple Remote Desktop?
    Or other Application is running.

    Try a google search for *managed client site:apple.com* and peruse the hits.

  • Getting processes running under NT

    Dear all,
    Is it possible for my Java application to check whether some process is running under NT 4.0? For example, can I check whether Word 2000 is currently running on a machine? You can see winword.exe being active in the task manager, how can I catch this from my Java application?
    Thanks in advance,
    Sebastiaan

    Look into NT Resource Kit. You can access commands like 'ps -ef' (it'll give you the list of running processes - just like Unix).
    using Runtime.getRuntime().execute("ps -ef | grep [your_process_name]");
    The trick part would be to capture the output. Right from the top of my head: do Runtime.getRuntime().execute("ps -ef >> output.txt");
    It'll create output.txt with some output in it. Reading in the file, you'll find out if your process is running.
    The NT Resource Kit is a standard utility any nt sysadmin should have.
    Good luck
    AN
    www.bizdisplay.com

  • Background Task running under initiator not under WF-BATCH

    Hi All,
      I am trying to resolve a problem with a Background task running under intiator. Since the initiator does not have authorization to execute the task, it is not working.
    My understanding was, all background tasks will run under WF-BATCH!!. Is it correct?.  in 4.7, it is working this way.
    However in ECC 6.00  the background task before the first dialog work item is executed under 'intiator' in this case.  I have moved the same task after first dialog work item, and it was executed under WF-BATCH.. I cannot move the task after the dialog workitem as the task need to be executed immediatly after the creation of workflow.
    1. How can I run the task in backgroud under WF-BATCH?
    2. Inside the task, I am running a BDC to update a flag in downpayment transaction created using F-47. How can I run the process under batch user to overcome the authorization issue that initiator will not authorization.
    I am running this workflow in SAP ECC 6.0 level 13
    Any help is really appreciated..
    thanks in advance for your help.
    johnson

    This issue can be resolved with triggering the event using the additional flag export parameter 'CREATOR' in function module  ''SWE_EVENT_CREATE_FOR_UPD_TASK' as WF-BATCH. I was not passing this parameter and hence it didn't work in ECC 6.0 as it take who ran the process as creator and ran the background task under that users id.
    Thanks Rachid for your input to resolve this problem.
    johnson zavier

  • JSP's running under Resin server engine???

    I have a JSP application that I am trying to move from running under Tomcat 4.0 to Resin web server engine.
    When trying to run the application, I get this error:
    java.util.MissingResourceException: Can't find bundle for base name AppProperties, locale
    I think the error is happening because I have the AppProperties file in the wrong place under the Resin directory. Could someone please let me know how to properly use a Resource Bundle Properties file using Resin for my JSP's to run???
    Please help...
    Thank you...

    Never mind....I got it....

Maybe you are looking for