New to Java: Forcing Open development? Can I choose?

Dear brewers,
I am only just delving into the world of java. Though aware and savvy of the things that make the world of computing tick, I cannot claim to have vast proramming experience.
I have been exposed to C and C++ and the frustrations that come with them so the Java concept seems welcome and refreshing and your tutorials promise to serve the purpose of dragging one swiftly into the Java cup.
However, browsing through all the documentation, I have noticed that that Java seeks only to facilitate portability of applications and not preserve the choice of a developer to restrict an application to a particular platform (system).
I understand that the JavaVM is 'the' java platform but I would also like to know if there exist any measures, besides the unreliable dependency on copyright warnings to prevent piracy of software or the running of an application on a system other than that for which the developer intended.
If, for example, a cellphone company developed an application that allowed its users to play movies on their java-enabled units, how would they proceed to protect their application and as a result retain their competitiveness?
If my analysis of the online Java documentation is sound, all competitors would have to do is let "their" users know that such an application exists and their users would then proceed to obtain a copy of the software which is "guaranteed" to run on any java enabled system!
I realise that my question may have already been answered and if this is the case, kindly provide me with links to documentation on this question and other related topics.I would greatly appreciate your response.

Your question implies that the way to enforce license restrictions is to write in a platform-dependent language, or at least make the software product available only in a platform-dependent format.
I suppose you can do that, but it sounds like a doubtful strategy.
o What if the definition of the protected platform does not coincide with the hardware platform. Example: Cell phone developer uses a commodity chip like the ARM?
o What if the cell phone supplier wants to meter the use, allowing the user to only view movies as long as jis monthly bill is paid?
The answer is to consciously build these into the application design.
This is NOT meant as an endorsement of the java "write one run anywhere" mantra.

Similar Messages

  • New to java: have to develop for palm, symbian and pocket pc

    Hello,
    I am fairly new to Java. After a long time of searching for a technology which allows it to develop an application for Palm OS, Symbian OS and Pocket PC I am curious if one can do this with Java. I searched the Palm and Symbian homepages and found that those OSes can handle MIDlets. I could not found if they also can handle full Java-applications. For the Pocket PC I could not found a solution to run Java applications or MIDlets.
    My questions:
    - is it possible to run Java applications on Palm, Symbian an Pocket PC?
    - if yes, which tools are the best to use? (SUN One?)
    - is it possible to write "real" applications (for instance a spreadsheet) as MIDlet or can one use "real"-Java to develop applications for Palm/Symbian/Pocket PC?
    Sorry if this questions sound a little stupid an thanks for every help/suggestion!
    Kind regards,
    Martijn

    Normaly such devices only know MIDlets. This is becaus they do not have the power of a PC. In addition to that they are to different in hardware so an other API is to use.
    I think it is notpossible to write a VM to do the same as a PC now.
    Hope this will help you.

  • Im new to java and hope somebody can help me with my question

    Hi!
    Im quite new to java and I just have some simple questions..
    can someone please tell what kinds of error are considered as language violation for java? where can I find more info about these errors?
    can someone give me a simple example on a kind of error that cannot be caught in both compilation and runtime? I hope someone can help me out. Thanks in advance!!

    knightz211 wrote:
    Im just asking about errors that might go against the language definition but cant be detected.. If it "goes against the language defintion," it will be detected by the compiler. That's half of the compiler's job is to tell you what you've done that violates the language spec.
    because it confuses me when they say that such errors might occur so I just want to know what might these errors be.. sorry for that..Who's "they"? What exactly* did "they" say about "such errors"? It sounds to me like you're just confused, and you think there's something mysterious and inexplicable going on but you don't know what and don't even know what you're asking.
    I would suggest not worrying about hypothetical problems that you can't even put into words and focussing on learning Java. Along the way, if you encounter real, specific, actual problems, ask about them, and you'll probably get answers about the problems themselves and the language or theory behind them.

  • I have iPhoto 11 9.2.4. - I want to make a new album or card but I can't choose the ''themes'' that I normaly have, is someone can help me !?

    I want to make a new album(book) or card but I can't choose the ''themes'' that I normaly have in the past, is someone can help me !?

    Basic troubleshooting steps clearly outlined in the User Guide are restart, reset, restore from backup, restore as new device.
    If you have been through ALL of the troubleshooting steps and you're still having problems, then you'll need to bring your phone to Apple for investigation.

  • I have problem with browsing. when i browse a new unnessary window is open automitacally. can anyone please help to solv this problem.

    an atuomatically page open like this. http://rnzzz.exclusive-rewards.prizespy.xyz/?sov=62551901&hid=gqmqqssogwsokos&kw =DIRECT&email=email&redid=797&gsid=68&id=XNSX.1%3A%3APEERFLY-r797-t68

    If you're getting prompts that say something like this:
         To view this web content, you need to install the Java Runtime Environment
    then the Apple Java runtime is not installed. Some third-party web plugin is installed that depends on Apple Java.
    You may have installed the Oracle Java runtime, which is different. Neither installing nor removing the Oracle Java will have any effect on the prompts. The only thing that will stop the prompts is either to install Apple Java, or to remove the web plugin that depends on it, as I wrote earlier. I don't know all the possible plugins that might be involved, but I mentioned a couple of common ones.
    Any third-party software that doesn't install by drag-and-drop into the Applications folder, and uninstall by drag-and-drop to the Trash, is a system modification.
    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    I never install system modifications myself, and except as stated in this comment, I don't know how to uninstall them. You'll have to do your own research to find that information.
    Here are some general guidelines to get you started. Suppose you want to remove something called “BrickMyMac” (a hypothetical example.) First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickmymac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, contact the developer. While you're waiting for a response, download BrickMyMac.dmg and open it. There may be an application in there such as “Uninstall BrickMyMac.” If not, open “BrickMyMac.pkg” and look for an Uninstall button. The uninstaller might also be accessed by clicking the Customize button, if there is one.
    Back up all data before making any changes.
    You will generally have to restart the computer in order to complete an uninstallation. Until you do that, there may be no effect, or unpredictable effects.
    If you can’t remove software in any other way, you’ll have to erase and install OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" such as "AppCleaner" and the like that purport to remove software.

  • How can I open help file (HTML or .chm) from Java Web Start (new to JAVA)

    Hi All,
    Im trying to open the help file of my application.
    When trying to access the help file from the GUI (pressing F1 for launching the help file), I'm geting the an error, something like:
    "Can't show help URL: jar:file:C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart\RMjar-name!/com/resources/helpFiles/MyHelpFile.html"
    It seems that the file which is packed in a jar, was downloaded to the Java Web Start cache directory:
    C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart
    The code which is activated when launching the help file is:
    try
                ResourceBundle resourceBundle = DoubleResourceBundle.getBundle("Resource", "ResourceImpl");
                RuntimeUtil.launchFile(new File(resourceBundle.getString("help.file")));
            } catch (IOException e)
                // TODO Auto-generated catch block
                e.printStackTrace();
            }where the property "help.file" is in some property file in the resource bundle named "Resource", and looks like this :
    help.file="com/trax/docs/help/global/MyHelpFile.html"
    The function "RuntimeUtil.launchFile" knows how to launch any file in its default application, and indeed it does launches the html, when giving it an absolute path to the file on my PC, as "C:\Helpfiles\MyHelpFile.html" as such:
    RuntimeUtil.launchFile("C:\Helpfiles\MyHelpFile.html");My question is :
    The application is going to be deployed on a Customer PC. How can I access the html file from the code, with a relative path and not its absolute path on the customer pc, which I can't know?
    I found these restrictions regarding web start:
    (copied from "http://rachel.sourceforge.net/"):
    *Rule 1: Java Archives only. No loose files.* All your resources have to be packaged in Java Archives (jar) if you want to have
    them delivered to the user's machine and kept up-to-date automatically by Java Web Start.
    *Rule 2: No file paths.* You can't use absolute or relative file paths to locate your
    jars holding your resources (e.g. <code>jar:file:///c:/java/jws/.cache/resources.jar</code>).
    Absolute file paths won't work because you never know where Java Web Start
    will put your jar on the user's machine. Relative file paths won't work because Java Web Start
    mangles the names of your jars (e.g. <code>venus.jar</code> becomes <code>RMvenus.jar</code>)
    and every JNLP client implementation has the right to mangle your names
    in a different way and you, therefore, can't predict the name with
    which your jar will be rechristend and end up on the user's machine in
    the application cache.Seems complex or impossible, to perform a simple task like opening a file.
    Please advise (I'm new to Java and Web Start).
    BTW, I'm working with IntelliJ IDEA 5.0.
    Thanks,
    Zedik.
    {font:Tahoma}{size:26pt}
    {size}{font}

    the follwing method i have used to open html file ...
    so to access html file i am shipping resources folder with jar file ..
    private void openHtmlPages(String pageName) {
         String cmd[] = new String[2];
         String browser = null;
         File file = null;
         if(System.getProperty("os.name").indexOf("Linux")>-1) {
              file = new File("/usr/bin/mozilla");
              if(!file.exists() ) {
              }else     {
                   browser = "mozilla";
         }else {
              browser = "<path of iexplore>";
         cmd[0] = browser;
         File files = new File("");
         String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
         java.net.URL url = this.getClass().getResource(metaData);
         String fileName = url.getFile();
         fileName = fileName.replaceAll("file:/","");
         fileName = fileName.replaceAll("%2520"," ");
         fileName = fileName.replaceAll("%20"," ");
         fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
         cmd[1] = fileName;     
         try{
              Process p = Runtime.getRuntime().exec(cmd);
         }catch(java.io.IOException io){
                   //Ignore
    can anyone give me the solution..???
    Regards
    Ganesan S

  • I am new to this and a bit rusty with Java, Oracle, Web Development, et al; and, I need a free trial run at this time, Can we do this?

    I am new to this and a bit rusty with Java, Oracle, Web Development, et al; and, I need a free trial run at this time, Can we do this?

    your itunes accoutn have nothing to d with your computer
    you can go to any computer with internet access in the world and
    login into your itunes account if you have the appleID and password
    the itunes account is placed on apples itunes servers

  • New to Java(TM) ME Platform SDK 3.0 how to open multiple emulators?

    Hi im new to Java Mobile Phone apps.
    I want to make a bluetooth game and theres a great bluetooth example in the package but i just cant find anywhere i can open 2 or more emulators.
    The compiler does'nt allow multiple instances either, Havent found a setting to change that either.
    Please help thank you.

    ooo apperently you have to "copy" the project and then change the emulator settings for the project to use a diffrent emulator shell. also you have to fix all build errors.

  • Dual monitor - force new windows to always open on primary monitor?

    I use my secondary monitor to watch streaming TV in internet browser windows.  When I have finished watching streaming TV and the secondary monitor is switched off, Safari still opens new browser windows on the secondary monitor by default (presumably due to the fact that the last active browser window was open on the secondary monitor).  This is irritating and means I have to switch the secondary monitor back on to drag the new browser window back to the primary display.  The secondary monitor is connected by VGA.
    This is a minor niggle, rather than a major issue, but it is irritating nevertheless!  Does anyone know if there is a way to force new windows to always open on primary monitor, regardless of where the last active window was?
    Any help much appreciated.
    Many thanks,
    Ben

    After many days i found solution:
    Run the client and get it set up the way you prefer, or Open your saved RDP file
    On the Display tab, choose a non-fullscreen resolution.
    On the General tab, click "delete these credentials", if possible.
    Click Connect .
    You will immediately get a local login dialog. Leave it blank and click
    OK .
    When you are connected and the remote login dialog appears, drag the window to the desired monitor.
    On the remote login dialog, click Cancel . The settings dialog should reappear locally.
    On the Display tab, you can now choose fullscreen.
    You can now save your session with the Save button on the
    General tab, as well as save your login credentials.
    Try more times ,worked for me.

  • I have a new ipad and everything works but can't connect to the app store. Itunes works and the wifi seems to be working but i get a blank white screen when i open the appstore.Nothing will load unter the features or charts tab. Any Suggestions?

    I have a new ipad and everything works but can't connect to the app store. Itunes works and the wifi seems to be working but i get a blank white screen when i open the appstore. Nothing will load unter the features or charts tab so i cant download any apps. Purchased and updates tab loads fine. Any suggestions?

    You would get better response from the iTunes community forum.
    Have a nice day!

  • On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom new document in order to open one. How can i have directly a new document when i click on pages icon

    On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom < new document> in order to open one. How can i have directly a new document when i click on pages icon

    How to open an existing Pages document?
    Click Pages icon in the Dock to launch Pages.
    When Pages is open, click File menu in the  Pages menu bar.
    Select “Open”.
    When the select document  dialog box opens up, highlight/select the document and click “Open”
    at the bottom right corner of the dialog box.
    s
    https://support.apple.com/kb/PH15304?locale=en_US

  • Pages will no longer let me open files that I have previously downloaded, worked on and then saved on my mac. However it will let me open pages documents that I have started from new. I need the other documents to open and can't figure it out. PLEASE

    Pages will no longer let me open files that I have previously downloaded, worked on and then saved on my mac. However it will let me open pages documents that I have started from new. I need the other documents to open and can't figure it out. PLEASE

    I just got my mac a month ago so go easy on me but I was just working with the pages that was already on it, and then today I know it updated, and now I am unable to open a lot of my documents!:(  Idk what you mean by the icloud version lol sorry! As for the version, when I open pages from my apps and click 'about' it says version 5.1? And when I open the document it just goes grey and kind of blinks and doesnt open? No error message or any indication of why it will not open now when I for sure have opened it in the past! Andddd for the OS X I think it is 10.9.1 ??

  • I bought a second hand G4 iBook with iLife 09 on it.  I have copied iLife to my new Macbook Pro. The applications would not open, so I did a software update and update all three applications, but they will still not open.  Can anyone help?

    I bought a second hand G4 iBook with iLife 09 on it.  I have copied iLife to my new Macbook Pro. The applications would not open, so I did a software update and update all three applications, but they will still not open.  Can anyone help?

    The seller should have given you the original disk so that you can reinstall as needed. But it likely was a single-user license (which really means single computer) so you can only have a copy on one computer at a time. If the seller didn't give you the disk he is probably still using the software on his new Mac. Your best option to get any of the iWork apps to use in OS X 10.6.6 or later is through the Mac App Store. You can then install them on any Mac you have that has access to the Mac App Store using your Apple ID.

  • I can not figure out how to set-up my home page so that it starts with Goggle, and then evrytime I open a new tab, it too opens with Goggle. TY 4 any help.

    [email protected]

    Firefox has always opened a blank new tab, if it opened to anything else that would be caused by an add-on. Check your add-ons to see if any offer this feature, or if any were disabled when you updated to Firefox 4.
    The NewTabURL add-on can be used to open a page of your choice in new tabs - https://addons.mozilla.org/firefox/addon/newtaburl

  • I just got a notice to update my firefox to 4.0 and when I downloaded the new software it indicated: that I can't open the application "Firefox" because it is not supported on this architecture. Any ideas about what might be wrong and how to fix it?

    I just got a notice to update my firefox to 4.0 and when I downloaded the new software it indicated: that I can't open the application "Firefox" because it is not supported on this architecture. Any ideas about what might be wrong and how to fix it?

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

Maybe you are looking for

  • Lost photos problem with iphoto 2

    i seem to have lost around 90% of my photos - at least - they are not in the library when i start iphoto - but they are there when i check finder. roll 10 to roll 82 are missing. i just imported more photos - and iphoto seemed to work out that they m

  • Sort Order in Ipod

    I have had an IPod Classic 5th 30G  for many years but still bugged by the same issue locating things. Mostly I listen to classical music so an Album Name might have two symphonies and 8 tracks in all. I would like my search to go something like: Gen

  • Formatting An External DVD Burner

    I purchased an external DVD burner after being told it was compatible with a Mac. http://www.newegg.com/Product/Product.aspx?Item=N82E16827151194 It's recognized in Disk Utility, but when I try and burn a DVD, DU gives me a message that "Another appl

  • TS3212 Installed itune on my pc,when I click on icon it will not open

    Installed itunes on my pc,when I click on icon it will not open.

  • FM for getting the capacity of given work center

    Hi all , 1) Is there any function module to get the capacity of the workcenter . 2) how to know the number of hours that work center works . Please mention the field which represents the capacity ..... Regards Raj