New to java .. new to license - use of javac...

Hello,
I was wondering about the sdk license from sun's jdk...
Can somebody explain me if i'am right or not and when not then why?
- The sdk contains the javac compiler.
Calling this compiler through my java code in process (via main()-method call)
is allowed? is it illegal?
Calling this compiler with some wrapper classes to catch the error messages
and warnings is allowed? is it illegal?
- There are some other sun.* packages which are not documented...
Can i use/extend those classes at my own risk?
or is it illegal at all? And then when its illegal what is so "open" and free about java?
Are there more public versions of java available?
How can I make products and sell them without a big laywer department?
greetings and thanks from an really irritated newby

As I said I know that javac is only inside the SDK.
But I don't know if it is allowed to extend such classes
and then if customers install the jdk can make
use of the extended SDK classes...
Greetings and Thanks
a newbie

Similar Messages

  • How do I get rid of the alert "(Java Scriprt Application)Type error: Text is undefined   I get it when I get a new Internet page using Firefow

    How do I get rid of the alert "(Java Scriprt Application)Type error: Text is undefined>  I get it when I get a new Internet page using Firefow

    I do not want to half to install things into my PC that i do not trust! I just want this gone and like i said Firefox should of given us the choice to add this and not forced us, because if there is no actual way to remove it then il be forced to remove Firefox till they either remove it or allow us to remove it!

  • New virtual Directory using JAVA

    Hello Friends;
    I want to create a folder under SAP j2ee engine and i want to upload my files under new folder and use it like
    http://portal:port/Newfolder/mynew_photo.jpg
    It is possible in iis. For ex.  i can create a folder manuel under
    c:\inetpub\wwwroot\new_folder
    and after i put my files i can use it
    http://iisserver:port/new_folder/new_photo.jpg
    I have tried this directories
    D:\usr\sap\p50\JC01\j2ee\cluster\server0\apps\sap.com
    D:\usr\sap\p50\JC01\j2ee\cluster\server0\apps\
    D:\usr\sap\p50\JC01\j2ee\cluster\server0\
    and i have create new folder but i couldnt use it.
    I hope that i have explained my question.
    Thanks in Advance
    Best Regards

    Dear Eray,
                  You can use the following Java code to create the Folder (Directory) in the SAP J2EE Engine and add the contents in the Directory
    import java.io.*;
    class CreateDirectory
       public static void main(String args[])
          try{
        String strDirectoy ="test";
        String strManyDirectories="dir1/dir2/dir3";
        // Create one directory
        boolean success = (new File(strDirectoy)).mkdir();
        if (success) {
          System.out.println("Directory: " + strDirectoy + " created");
        // Create multiple directories
        success = (new File(strManyDirectories)).mkdirs();
        if (success) {
          System.out.println("Directories: " + strManyDirectories + " created");
        }catch (Exception e){//Catch exception if any
          System.err.println("Error: " + e.getMessage());
    Rewards Points if useful..
    Regards,
    N.Jayanth Kumar

  • ISetup new custom interface using BC4J/java class

    Hi,
    I am able to create new custom interface using the link :- How to setup an user to be Oracle iSetup Super user ? but I have not seen anything for BC4J filter set, as per oracle iSetup developer guide clearly explains step by step process how to create custom BC4J interface type, but they have not mention how to add filters, as per oracle developer guide we have to use 'iSetup Framework' for BC4J, if we select type as 'iSetup Framework' then we don't have option to add filter parameters.
    Any idea how to see existing  iSetup interface repository values, Search shows the result, but we can't go in details? any idea to see this?
    Oracle have good interface repository but most of them does not have option to filter, and  update so I want to customize them by adding new interfaces with filterable and update option
    Regards
    Anil

    First, be sure your properties file is in the root of the classpath.
    The Messages.properties or Messages_en.properties should be in the WEB-INF/classes/ directory of the war or as a root file of a jar included in the classpath (WEB-INF/lib).
    If it doesn't work, try adding a "/" before the file name. The classloader will try to find it as a root file of the classpath.
    For example:
              ResourceBundle messages = ResourceBundle.getBundle("/Messages", locale);
    If you are using sun appserver, the classloader hierarchy is configured by default from inside the war to outside, so it will search first in the WEB-INF/classes/Messages_en.properties and then it will search the file inside each jar file in WEB-INF/lib.
    If you want more information, check the classloader hierarchy of the appserver you are using.
    Hope it helps.

  • How to create new XML file using retreived XML content by using SAX API?

    hi all,
    * How to create new XML file using retreived XML content by using SAX ?
    * I have tried my level best, but output is coming invalid format, my code is follows,
    XMLFileParser.java class :-
    import java.io.StringReader;
    import java.io.StringWriter;
    import javax.xml.transform.OutputKeys;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMResult;
    import javax.xml.transform.sax.SAXSource;
    import javax.xml.transform.sax.SAXTransformerFactory;
    import javax.xml.transform.sax.TransformerHandler;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.xml.sax.Attributes;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.XMLFilterImpl;
    public class PdfParser extends XMLFilterImpl {
        private TransformerHandler handler;
        Document meta_data;
        private StringWriter meta_data_text = new StringWriter();
        public void startDocument() throws SAXException {
        void startValidation() throws SAXException {
            StreamResult streamResult = new StreamResult(meta_data_text);
            SAXTransformerFactory factory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();
            try
                handler = factory.newTransformerHandler();
                Transformer transformer = handler.getTransformer();
                transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
                transformer.setOutputProperty(OutputKeys.INDENT, "yes");
                handler.setResult(streamResult);
                handler.startDocument();
            catch (TransformerConfigurationException tce)
                System.out.println("Error during the parse :"+ tce.getMessageAndLocation());
            super.startDocument();
        public void startElement(String namespaceURI, String localName,
                String qualifiedName, Attributes atts) throws SAXException {
            handler.startElement(namespaceURI, localName, qualifiedName, atts);
            super.startElement(namespaceURI, localName, qualifiedName, atts);
        public void characters(char[] text, int start, int length)
                throws SAXException {
            handler.characters(text, start, length);
            super.characters(text, start, length);
        public void endElement(String namespaceURI, String localName,
                String qualifiedName) throws SAXException {
            super.endElement("", localName, qualifiedName);
            handler.endElement("", localName, qualifiedName);
        public void endDocument() throws SAXException {
        void endValidation() throws SAXException {
            handler.endDocument();
            try {
                TransformerFactory transfactory = TransformerFactory.newInstance();
                Transformer trans = transfactory.newTransformer();
                SAXSource sax_source = new SAXSource(new InputSource(new StringReader(meta_data_text.toString())));
                DOMResult dom_result = new DOMResult();
                trans.transform(sax_source, dom_result);
                meta_data = (Document) dom_result.getNode();
                System.out.println(meta_data_text);
            catch (TransformerConfigurationException tce) {
                System.out.println("Error occurs during the parse :"+ tce.getMessageAndLocation());
            catch (TransformerException te) {
                System.out.println("Error in result transformation :"+ te.getMessageAndLocation());
    } CreateXMLFile.java class :-
    Sax.startDocument();
    Sax.startValidation();
    Sax.startElement("", "pdf", "pdf", new AttributesImpl());
    Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());          
    String xmp_str = new String(meta_data.getByteArray(),"UTF8");
    char[] xmp_arr = xmp_str.toCharArray();
    Sax.characters(xmp_arr, 0, xmp_arr.length);
    Sax.endElement("", "pdf", "pdf");
    Sax.endValidation();
    Sax.endDocument();
    Sax.endElement("", "basic-metadata", "basic-metadata");* In CreateXMLFile.java
    class, I have retreived the xml content in the meta_data object, after that i have converted into character array and this will be sends to SAX
    * In this case , the XML file created successfully but the retreived XML content added as an text in between basic-metadata Element, that is, retreived XML content
    is not an XML type text, it just an Normal text Why that ?
    * Please help me what is the problem in my code?
    Cheers,
    JavaImran

    Sax.startDocument();
    Sax.startValidation();
    Sax.startElement("", "pdf", "pdf", new AttributesImpl());
    Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());          
    String xmp_str = new String(meta_data.getByteArray(),"UTF8");
    char[] xmp_arr = xmp_str.toCharArray();
    Sax.characters(xmp_arr, 0, xmp_arr.length);
    </code><code>Sax.endElement("", "basic-metadata", "basic-metadata");</code>
    <code class="jive-code jive-java">Sax.endElement("", "pdf", "pdf");
    Sax.endValidation();
    Sax.endDocument();     
    * I HAVE CHANGED MY AS PER YOUR SUGGESTION, NOW SAME RESULT HAS COMING.
    * I AM NOT ABLE TO GET THE EXACT OUTPUT.,WHY THAT ?
    Thanks,
    JavaImran{code}

  • Oracle 10g - Creating a new Application Server using standalone OC4J 10g

    I have some issues in creating a new app. server using standalone oc4j 10g 10.1.3 instance. After I created the app. server instance, I tested the connection and it says connection refused. I used the userid as oc4jadmin and the password as welcome. I am getting a message connection refused. For connection, I used the default hostname "localhost" and I didn't mention anything in the URL path.

    Thanks Steve..
    Here is what I am trying to do.. I want to create a new app server instance (i.e.) stand alone oc4j server, where I can deploy my web service and run a test.
    Oracle JDeveloper 10g:
    Under Connection Navigator, Application Server --
    1) Right click to 'Create New Application Server Connection'
    2) Connection type as 'Standalone OC4J 10 g 10.1.3',
    3) Username ==> oc4jadmin, Password ==>welcome, checked the Deploy password.
    4) Hostname: localhost RMI Port: 23791
    URL path: <<blank>>
    5) Test Connection ==> getting a error message...
    Error while getting remote MBeanServer for url: ormi://localhost:23791/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
    Any input you can provide would be of great help.

  • How is 9iJD able to run this much Faster? Any new concept ur using. Please Tell Us...

    We are very much eager to see the production release of 9iJD. When will it be available for Download?
    How is 9iJD is running this much Faster? Any new concept uve used to develop this. Please let us know the Java Community. Its much faster than any application developed with Microsoft Tools or even VB/VC++...
    Yours,
    Sankar.B

    Please see:
    http://technet.oracle.com:89/ubb/Forum104/HTML/000054.html
    thanks.

  • The software licence agreement with my new IPOD prohibits use on a non appl

    the software licence agreement with my new IPOD prohibits use on a non apple branded computer (yeah, I know, no one reads these things) therefore, as I read the agreement, I am not allowed to install the software on teh CD that came with my new IPOD onto my computer - Interestingly enough, if I run just the itunes installer from the CD and not the "autorun" file, then I get a different licence agreement.
    Will Apple compuer company please formally state that the supplied software may be installed on a non Apple branded computer

    here is the section to which I was referring - it popped up when I first inserted the CD, and it runs when you install the IPOD updater - see the first sentence.
    2. Permitted License Uses and Restrictions This License allows you to install and use one copy of the Apple Software on a single Apple-labeled device or computer at a time. The Apple Software may be used to reproduce materials so long as such use is limited to reproduction of non-copyrighted materials, materials in which you own the copyright, or materials you are authorized or legally permitted to reproduce. This License does not allow the Apple Software to exist on more than one such device or computer at a time, and you may not make the Apple Software available over a network where it could be used by multiple devices or multiple computers at the same time. You may make one copy of the Apple Software (excluding the Boot ROM code) in machine-readable form for backup purposes only; provided that the backup copy must include all copyright or other proprietary notices contained on the original. Except as and only to the extent expressly permitted in this License or by applicable law, you may not copy, decompile, reverse engineer, disassemble, attempt to derive the source code of, modify, or create derivative works of the Apple Software or any part thereof. Any attempt to do so is a violation of the rights of Apple and its licensors of the Apple Software. If you breach this restriction, you

  • New user license

    Hi friends,
    We want to increass user in our PRD server & we purchase new user license from SAP. Now can any one tell me the process to create the new user .(I know very well creation of user using su01) But i want to know that we need to install any license or key for the new user in PRD server or simply create the users.
    Thanks & Regards
    gopal

    Hi,
    just create the user using SU01.
    at a time of SAP License Audit just classify the newly created user using tcode USMM.
    regards,
    kaushal

  • I have a new iPad that uses the Cloud.  But my iMac, my MacBook Air, and my iPhone are all older.  How can I link my mail accounts that aren't on the cloud withntiPhone

    Does anyone know how to sync my email account which is on my iMac, my MacBook Air, and my iPhone with my new iPad that uses the Cloud.  none of my other Apple devices can use the cloud.   Please Help me use the same email account on my iPad!

    I have a MacBook Air, bought in 2010 or 2011.  It is running OS 10.6.8.
    I have an iMac that is the same age as my MacBook Air.  My iPhone is 2nd or 3rd generation.
    None can support "the Cloud".  I use gmail and my iPhone and both computers are all synced.
    I can't get email on my new iPad that does use "The Cloud".
    Please help.

  • How to trigger New page while using ALV with classes/oops?

    Hi All
    I am trying to print a report which has to show the data in two pages.
    I am using ALV with classes/oops.
    Though I am able to print the report but a new page is not coming. Whole of the data is coming in one single page.
    Please tell me as to how to trigger a NEW PAGE while using ALV with classes/oops.
    Please send some code samples also if available.
    Thanks in advance.
    Jerry

    using sort option you can do it. in case of grid/oo alv class ALV you can view that only in print mode/preview mode.
    in case of list you can view that directly.
    sort-fieldname = 'FIELDNAME'.
    sort-group = '*'  "triggers new page
    sort-up = 'X'.
    append sort to it_sort.

  • HT4053 can i set up my new iphone 5s using my ipad (because my work laptop wont allow me to installl itunes).?

    can i set up my new iphone 5s using my ipad (because my work laptop wont allow me to installl itunes).?

    No, but you do not need iTunes to setup a new iPhone 5s. Create an iCloud backup for anything you want to transfer to the new iPhone.

  • How do I connect an older imac to my new imac to use as a second monitor?

    Hi !
    I was wondering if it were possible to  connect an older imac to my new imac to use as a second monitor?
    My older imac is from 2006. The new one is a 2012 imac.
    Any advice would be appreciated.
    Thanks,
    JC

    http://support.apple.com/kb/PH4469
    Look this article over, the key is to connect either mini display port or thunderbolt and using CMD+F2, let me know if this helps or if it doesn't work out. I'll find another solution if this doesn't work Joel ^_^

  • Macbook pro fails to read sd card with movies recorded on it, any ideas? I can view them in the video camera so know they are there somewhere. I am now thinking I should have formatted or initialised the new card before using it.

    My macbook pro is failing to read a new sd card with movies recorded on it. Any ideas please? A previously used SD card has downloaded without problems. I have tried using a card reader as well as downloading from the video camera itself, neither works.
    I can view the latest recordings on the video camera so know they are there somewhere. I am now thinking I should have formatted or initialised the new card before using it but didn't think of that at the time. Obviously don't want to do this now as it will wipe the movies.

    Hi and Welcome to the Forums!
    From everything you've described, you've done everything possible. Hence, I recommend you seek out your warranty support.
    Good luck and let us know.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I bought a new laptop and used Windows Easy Transfer cable and moved all files from one computer to another. I installed iTunes and found my iTunes music Library.  However, when I plug in my iPod it says it is already synced with another iTunes Library.

    I bought a new laptop and used Windows Easy Transfer cable and moved all files from one computer to another. I installed iTunes and found my iTunes music Library.  However, when I plug in my iPod it says it is already synced with another iTunes Library. 
    I don't see anything in Help that shows when you already have transfered all the files over.  Why would it want to erase and sync when I already have all the music folder copied over?  I didn't have an issue when I had another technician copy from one laptop to another.  Home sharing is also on but not being recognized.

    I suspect you only migrated the media folder instead of the complete working library. Either review the transfer process and copy over the entire iTunes folder from your old profile's music folder or see Recovering your iTunes library from your iPod or iOS device.
    tt2

Maybe you are looking for

  • Error in the execution of custom billing extension in PA module

    Hi All , We had a requiremnet for creating the custom billing extension similar to the standard Revenue calculation billing extension . The change required in the formula for calculating the revenue was the Actual total burdened cost will be the Actu

  • Fan doesn't work

    I have a ENVY 17-j161ea and suddenly one of the fans doesn't seem to work anymore. When I play a game, the laptop reboots and I get a nice screen before boot that it is dangerous to continue because one of the fans isn't working.  I am currently moni

  • Problem in Importing Request Datasets into MDS for OIM

    I m getting the following Error message: Problem invoking WLST - Traceback (innermost last): File "C:\Oracle\Middleware\Oracle_IDM1\server\bin\weblogicImportMetadata.py", line 21, in ? File "C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py"

  • Queries on Gmail & Yahoo

    Guyz i found many threads and apple knowledge base docs regd setting up imap/pop for gmail &yahoo and did the same on my new iphone...following are my queries,appreciate any answers .... 1> as i do not have IMAP enabling/disabling in my gmail account

  • How to reverse the cash journal posted entries in FBCJ

    Hi All In Cash journal (FBCJ) user has posted the document by mistakenly two times, is it possible to reverse the cash journal posted document. Please advise how to reverse the posted cash journal entries. Regards K.Gunasekar