Creating any .java file

can it be possible to create .java file from .class file? if yes then how? here basically i want to get source code through .class file , is it possible to get?

Hi,
It depends. Well, if you are going to use only a web application,
then creating an .war will help. If you are using EJB's then .ear file
is suitable. In your case, I believe .war could be sufficient provided
the application is not too complicated. Hope this helps.
Regards
Raj
chandra paduri wrote:
Can any body tell how to deploy an application containing jsp's and
java beans in an application server.?Is creating a war file correct
procedure?.If so should jsp's be registered?.
Try our New Web Based Forum at http://softwareforum.sun.com
Includes Access to our Product Knowledge Base!

Similar Messages

  • Create a Java File

    Hello,
    I have some java script that I embed into my html, is it possible to create a java script file with this script? This way I only have ot update the script.
    I have dreamweaver and I tried to create a java file using that but when I choose to insert an applet and choose the file I create nothing happens.
    Any help would be appreciated.
    Thanks,

    Use a JS (Javascript ) file and embed it into the HTML. Use relative path to refer the JS
    The script to include the JS file in a HTML is :
    <script language="JavaScript" src="javascriptfilename.js"></script>
    let me know if this helped you.

  • Urgent! Pls help me! Can't compile any *.java files

    I am a new user to Java2SDK. I am using Win2K sever and I have installed Java2SDK1.4.0 in D drive. When I compile any *.java files, a message " 'javac' is not recognized as an internal or external command, operable program or batch file" appears. How can I solve this problem?
    Please help me. I am busy with my homework. Thank you very much.

    In your PATH variable include %JAVA_HOME%\bin;
    For example:
    C:\jdk1.4\bin;

  • Should not create any output file when invalid input source schema

    I have a xslt file, which I have make code to check the order status value.
    If OrderStatus != 'Reject' --> create attribute, element for output file
    Else OrderStatus = 'Reject' --> do not create attribute/element ==> output is the empty file.
    Requirement: if OrderStatus = 'Reject' --> do not create any output file.
    how to do with this requirement?

    I'd ask them over here.
    http://forums.asp.net/
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • I want XSLT do not create any output file

    I have a xslt file.
     <xsl:variable name="var:InValidReceiptCount">
    .... In here. I want xslt do not create any output file, also an empty file
    </xsl:variable>
    Thanks for helping :)

    If you can tell us your application scenario and why you are trying to control the output name only with xslt, then we can drive you towards correct direction. Remember you cannot control output path with xslt. 
    if you are using bizTalk, you have to use xslt with maps and set the output path at ports
    if you are using .net, you have to control it from your dotnet code.
    Xslt alone cannot control the output path.
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Should not create any output file when transform with xslt file

    I have a xslt file, which I have make code to check the order status value.
    If OrderStatus != 'Reject' --> create attribute, element for output file
    Else OrderStatus = 'Reject' --> do not create attribute/element ==> output is the empty file.
    Requirement: if OrderStatus = 'Reject' --> do not create any output file.
    how to do with this requirement?
    any help will be appreciated!

    Do you mean the xslt file always return the output file?
    I have tested this xslt file following (only xslt file, not run in BizTalk project):
    Create a blank console application using visual studio and add attached xslt file to newly created console app. Next open the XSLT file and select input file and output files and start xslt debugging to create output file.
    I want to edit the xslt file how to cannot create output file in the case OrderStatus = Reject.
    I don't say in particualr xslt file, its actually your map as a whole that returns a output message on successful execution.
    since you are testing the xslt file as individual file, you are able to control it as per need.  i mean you can write incomplete code or any kind of output elements that are not present even in schema. But when you set the map properties to use external
    xslt , map completely relies on xslt and xslt has to produce output that matches the output schema structure.
    So you better test your xslt by  setting it to your map. Once you set map properties to use xslt, you can test your map by right clicking on map and choosing test map.
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Creating a java file in the project.

    Hi
    I am using jdev 11.1.2,
    And i have created a table type in database navigator in my hr schema.Now i want to create a java file for this table type.
    In jdev 11.1.1.3 i guess i can do it by just right clicking on the type and selecting the 'Generate to java' option, but i cant find the same here in 11.1.2,
    How can fulfill my requirement now.
    Help needed .Thanks/.

    Since you have not specified the technology, i will take a dig and assue you are wanting to create a JPA/EJB project
    http://xmlandmore.blogspot.com/2011/01/create-jpa-entities-from-tables-with.html

  • How to run any java file...

    i want to run .java file..
    suppose i have some classes then i want to run those classes by providing just the name of the class..
    my program should run any .class file by just selecting the name of the class..

    rajeev-usendi wrote:
    it can be any .class file..
    it can have a main method() or init()...
    basically i want to execute that .class file and dynamically i want to access its variables which has been defined public..Why don't you just "execute" these class files within the program itself and keep the class files within the same project/jar file? Call the methods dynamically to access it's variables.
    I think could run any .java file by implementing it as Runnable and starting them as threads from the main program. I'm not sure how you'd get it to the poitn where you could .start() it though.

  • How to create a .java file through a j2me program?

    I am trying to develop a small application in j2me which needs dynamic creation of a .class file. For this purpose I tried to create .java file through my j2me code, but i could not do that..I want to know whether a java file can be created on a mobile phone or not..
    I would be grateful to you on your help in this regard..

    ...develop a program xyz.java using j2me which performs the following functionalities:
    1.create a file called abc.java
    2.extract its class file...For +1+ ie to create a file (any file, no matter java or not) from j2me, device need to support File Connection specified in [jsr 75|http://www.jcp.org/en/jsr/detail?id=75]. If you're interested, learn the jsr API on how to create and manage needed file.
    For +2+ described as extract its class file one needs to have java compiler (javac) on device. *) If you're interested, ask for more details at [Java Compiler forum|http://forums.sun.com/forum.jspa?forumID=7]. Also, if the class file is for CLDC then javac needs to support "JDK 1.3-compliant" compilation. To create CLDC classes on device, one also needs to have a preverifier tool. Check this at Java Compiler forum if needed.
    Good luck - I think you'll need a lot of it...
    *) javac on device -- it should not only be present but also provide a j2me API allowing to invoke it for particular java file with needed options. Same applies to preverifier tool.

  • How to create a .java file with multiple classes

    I have all the below classes declared in a file say ABC.java under
    a common package called somepackage
    Abstract class A
    Void abstract metod1();
    Void metod2();
    Class B
    void method3();
    Void method4();
    Class C
    void method1();
    Void method2();
    In Client.Java
    On compiling the Client.Java I get errors
    Import somepackag.*;
    Class Samp extents A
    void Method1()
    Public class Client
    A a1 =new Samp(); //error undeclared class A
    B b1 = new B1();//error undeclared class B
    C c1 = new C1();//error undeclared class C
    is it possible to have all the class declared in one file ( i dont need mutiple classes, as this file will be autogenerated , i need all classes in one file) and use the classes inside this in the some client app
    regards
    MP

    Peetzore wrote:
    As long as you have only one public class and your .java file is named after it you shouldn't have any problem.I did exactly that, but still i get the same error "Cannot find symbol"
    i have used the import command on top as import somepackage.*;
    Edited by: mpjava on Jun 2, 2009 1:29 AM
    Edited by: mpjava on Jun 2, 2009 1:30 AM

  • Cannot open any Java files on my Mac OSX: Problem Solved

    Hello all,
    I have just begun an Introduction to Java class and I'm already having problems...namely, I cannot open .java files on my Mac.
    Whenever I try to open them, I get an error message that says: "You cannot use this version of the application Xcode with this version of Mac OS X."
    I'm running version 10.5.4 on a PowerPC Mac. It's a few years old, but I don't understand how it could already be so outdated as to not allow me to even use the application.
    I am 100% new to programming and don't really know at all what I'm doing. Apple says their JDK comes with every Mac and no one else seems to be having this problem. I don't really even know where to go to for updates, if that is what I need to do, or if I should just download a different JDK.
    This is an intensive (6-week) class and I don't want to fall behind, but it's halfway through the first week and I cannot even open files.
    Any suggestions greatly appreciated.
    EDIT: I figured out the problem by getting out my installation disks and I found the latest xCode tools app in the "optional packages" folder.
    Installed it and now I'm up and running.
    Edited by: chalks on Sep 17, 2008 10:09 AM

    You can download Adobe Reader from adobe.com.  The Mac OSX uses its "reader" to open PDF files without the Adobe Reader.  If you downloader adobe reader, it should open all PDF files.  Hope this helps.

  • Urgent: Function GUI_DOWNLOAD can't create any data file!

    We are using this function GUI_DOWNLOAD to download internal table data to a flat file.  But after running the program, we got no any data file created!  The code is in the following:
    data : v_file type string.
    PARAMETERS: p_file(128) TYPE c OBLIGATORY LOWER CASE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM get_local_file_name USING p_file.
      v_file = p_file.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename = v_file
        write_field_separator = '|'
      TABLES
        data_tab = itab.  "Our internal talbe filled with data
    FORM get_local_file_name USING p_p_file.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          file_name     = p_p_file
        EXCEPTIONS
          mask_too_long = 1
          OTHERS        = 2.
    ENDFORM. " get_local_file_name
    Please help and we will give you reward points!

    Hi Buddy,
    KD_GET_FILENAME_ON_F4 is used to locate file in a directory (on value request). It should be at the time of uploading data from local PC to internal table.
    Insted u can use a simple file locator F4_FILENAME.
    Even the i mentioned also a file locater.
    I think u don't need to locate a file, u need to save the file with new file.
    so u can use the standard function as follows:
    Class - CL_GUI_FRONTENDSERVICES
    Method - FILE_SAVE_DIALOG
    I think ur problem will be resolved.
    If ur problem is not solved go through following code:
    PARAMETERS : pa_fname LIKE rlgrap-filename.
    data : lf_fname TYPE string.
    INITIALIZATION.
    Initializing the File Name
      pa_fname = 'C:\temp\'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_fname.
    F4 functionality for File Name
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = ' '
        IMPORTING
          file_name     = pa_fname.
      lf_fname = pa_fname.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename              = lf_fname
          filetype              = 'ASC'
          append                = ' '
          write_field_separator = 'X'
        TABLES
          data_tab              = ltab.

  • How to create a java file from an xml file

    anybody who can help me? i'm really trying to get this job in a hurry..thanks

    wondering if velocity template engine can help.
    a. parse XML
    b. construct bean (will XMLBeans help?)
    c. write java files (velocity may have helped here) from predefined template.
    Looking forward to other suitable solution.
    JSP to servlet is, I guess, such example.

  • Does Lightroom create any log file during exports?

    While exporting a photo book to PDF and Blurb the process fails. Export to JPEG works, 1 file per page.
    Is any log created so that one can see which page caused the problem?
    Thank you.

    Thanks for looking and acknowledging the question Geoff. 
    A log for troubleshooting would be very helpful.
    A log showing photo ID's on page numbers would be a fast referance when someone wants to go from a printed book to the photo file.
    Thanks.
    -- Fred

  • Is there any java File Poller class example??

    Dear Sir:
    My project requires to write a java class to perform something like File Poller function,
    ie. this File Poller Class will monitor some remote or local location/directory, then when some files were dropped in this location,
    File Poller Class will pick them up then do next such as put them somewhere else or parse etc.
    I google for a while, did not find a good example. can some guru here help post a good File Poller class example ??
    Thanks
    Sunny

    yawmark wrote:
    you could do a lot worse than use [Apache Camel|http://activemq.apache.org/camel/]...
    I thought Apache Camel was Perl. Oh, wait...
    ;o)
    ~Heh heh
    Just to pre-empt the [next gag|http://activemq.apache.org/camel/what-is-a-camel-toe.html]

Maybe you are looking for

  • Queue returns blank strings from template VI

    I have created a master VI which creates a named queue, this VI then spawns multiple copies of a template VI. These sub VIs all gain access to the queue and try writing data to it. I understood that the queue VI was protected so this should not cause

  • Google Docs error in Safari

    I've started receiving strange error in Safari 8 (Yosemite) when opening a Google Document: https://docs.google.com This error has been reported to Google and we'll into it as soon as possible. Please reload this page to continue Reloading does not h

  • LSO - Course follow up

    Hi, In LSO_PV15 there are two fields namely 1) Participation confirmed (field = CONFIRMED) and 2) Course Passed (field= PASSED). I suppose the field 'Participation confirmed' refers to learners attended the course and the 'course passed' refers to th

  • How to make fonts larger, darker

    I have poor vision and would like larger and bolder text.

  • IOS 8 on iPad4:  Photos stutters while scrolling through albums

    I made the huge mistake of moving from 7.1.2 to 8.0.2.  There are so many bugs. One extremely annoying this is that when scrolling through albums on Photos, it stutters all the time.  Anyone have a solution to this? Regards, Patrick