Bakrudeen :convert Java to executable file on DOS6.22 without JVM

I'm sorry that I can't see your solution any more.
Hi,Bakrudeen
I've seen the your advice, but I can't find the KVM for >DOS6.22. Any other solution?
Thanks a lot.Dengwu

Check out this link http://gcc.gnu.org/java

Similar Messages

  • Converting .java to .exe files  to run those without runtime environment

    i want to convert my java code to a windows application file so that when ever i have to take it to some place for description, i would not require to install java run time environment. and can show up the working of the code with the help of it..................

    Converting a Java application into an exe file
    This question is sometimes asked many times on a single day in the comp.lang.java.* newsgroups, and I always end up asking the same question: why do you want to? Most answers fall into one of four categories, and each prompts a different course of action. Most of the time, an exe file isn't actually required.
    Reason 1: Speed
    "Java is interpreted, so I want to make it native and make it faster." Well, very few modern desktop VMs actually spend much time interpreting Java bytecodes these days. Everyone and their dog has a JIT (Just In Time) compiler which will compile your code into native form before running it. Smart VMs will do this only when appropriate (ie if the code is going to be run more than once, or contains loops etc), and may recompile the code on the fly if the conditions change (eg if a subclass is loaded which invalidates some inlining optimisations, or if the code is run very frequently and therefore merits more aggressive optimisations). The bottom line is that for most applications, Java running on a VM is pretty fast these days. It's usually pretty close to the speed of a natively compiled and similar C/C++ application - certainly I've seen changing compiler (or compiler options) for C/C++ make more difference to speed than going between Java running on a VM and natively compiled Java.
    There are some situations where the speed difference is significant. If you're really desperate for that extra bit of performance, try evaluating one of the native compilers listed here with your particular application. Make sure you write some real benchmarks though - vague notions of "feeling faster" may well be down to preconceptions.
    Remember, too, that as new VMs come out, they tend to improve performance. That means that to get the best out of your application if it's running on a VM, the user only needs to download a later VM - no action is needed on your part. If they're using your natively compiled code, you'll probably need to recompile on a later version of the native compiler, if one is available.
    Reason 2: Being able to open an application by double-clicking on it
    If you can ask the user to install a JRE first, executable jar files are the way to go here. They're very simple to set up and use, and it won't cost you any money. See "Jar" in the Java Glossary for further information on how to create an executable jar file.
    Reason 3: Not having to distribute a jar file and the JRE
    Well, in some form or other, your users will need a runtime environment. Some native code compilers even require you to have a JRE installed as well! Chances are you're not going to be able to create a much smaller download, if that's the worry. However, there are other options here which make it easy to install your application. There's Java Web Start which also includes automatic upgrading of your software, but which will impose some restrictions (a bit like an applet, but slightly less restrictive) unless you sign your application. Alternatively, there are quite a few installers available, some of which are free (or free for personal use). See Installer in the Java Glossary for a list of some of them.
    Reason 4: Intellectual property protection
    Java byte-code can be decompiled pretty easily, and even obfuscators can only do so much. Here, native compilers really do make a difference. Obviously they won't make your code totally impossible to understand, but it'll be very difficult to get back to Java sources which could be modified and recompiled. The only further question to ask at this stage is whether the downsides of native compilation (eg it being a less-well-used (and therefore likely to be less solid) platform, being expensive etc) are worth the upside of the added protection. In some cases the answer will be yes, in some cases the answer will be no.
    What next?
    If, after reading through the above, you still want to try a native compiler, you can usually evaluate them before buying them. (Some are free, of course.) There's a list on Marco Schmidt's web-site, along with another view of the pros and cons.
    I go the above article in : http://www.yoda.arachsys.com/java/javaexe.html

  • How can I convert an outlook pst file to mac mail without using a windows based computer

    I recently bought the new iMac as my older Windows based computer crashed with a bad motherboard.  I have been trying to find a way to convert Outlook 2007 pst files to Mac Mail without the need to use a Windows based computer since all I have now is a Mac.  I have the copies of the pst files on my Mac, so I am looking for the most efficient way to convert them to the format that I can then open them in the Mac Mail.  Any suggestions would be greatly appreciated.

    Hi - thanks for the instructions but where do you get the option for Quicktime. If I do File - Export I only get the options for File name, place and size but no option that allows to select quicktime:-(
    Have you got any more tips?

  • Ant tools: converter java card -  class file  not belonging to the package!

    Hi
    I have another problem with converter. Could you help me please again if you have the time?
    I have created a directory when I save the class files generated by javac. After That , I use convert in this way:
    <convert
    JCA="true"
    EXP="true"
    CAP="true"
    packagename="testUn/classes/testUn"
    packageaid="0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x02:0x00"
    majorminorversion="1.0"
    verbose = "true">
    <AppletNameAID
    appletname="testUn.classes.testUn.PorteAppUn"
    aid="0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x02:0x00:0x00"/>
    <classpath refid="classpath"/>
    </convert>
    Here is the answer of the computer:
    [echo] Generation of the CAP,JCA and EXP files...
    [convert] Java Card Ant Tasks, Version 1.0
    [convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    [convert] Note: Usage of Java Card Ant Tasks is optional. Java Card Ant Tasks are not supported by Sun Microsystems, Inc.
    [convert] Java Card 2.2.2 Class File Converter, Version 1.3
    [convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    [convert] parsing /home/ehoudart/app-manager/VersionZero/src/testUn/classes/testUn/PorteAppUn.class
    [convert] converting testUn.PorteAppUn
    [*convert] error: class PorteAppUn does not belong to package testUn.classes.testUn.*
    [convert] conversion completed with 1 errors and 0 warnings.
    I do not understand why this unique applet class file does not belong to its own package. Is someone an idea?
    Thanks very much in advance for your answer.

    Here is a complete example build.xml (I think I have posted this before).
    <?xml version="1.0" encoding="UTF-8" ?>
    <project default="convert" name="javacard-starter">
      <!-- Build specific properties -->
      <property name="target.classes" location="${basedir}/target/classes" />
      <property name="target.javacard" location="${basedir}/target/javacard" />
      <property name="source.java" location="${basedir}/src/main/java" />
      <!-- Must point to the folder containing the JAR files from the JCDK -->
      <property name="javacard.libs" location="${basedir}/lib" />
      <!-- Must point to the folder containing the JAR file from the JCDK ant task -->
      <property name="javacard.ant-task" location="${basedir}/lib" />
      <!-- Must point to the folder containing the API export files from the JCDK -->
      <property name="javacard.export" location="${basedir}/src/main/export" />
      <property name="verbose" value="true" />
      <property name="noverify" value="false" />
      <!-- Path for JC tasks -->
      <path id="classpath">
        <fileset dir="${javacard.ant-task}">
          <include name="*.jar" />
        </fileset>
        <fileset dir="${javacard.libs}">
          <include name="*.jar" />
        </fileset>
      </path>
      <!-- set the export path to the Java Card export files -->
      <path id="export" description="set the export file path">
        <fileset dir="${javacard.export}">
          <include name="**/*.exp" />
        </fileset>
        <pathelement path="${javacard.export}" />
        <pathelement path="${target.classes}" />
        <pathelement path="${target.javacard}" />
      </path>
      <!-- Definitions for tasks for Java Card tools -->
      <taskdef name="capgen" classname="com.sun.javacard.ant.tasks.CapgenTask" classpathref="classpath" />
      <taskdef name="deploycap" classname="com.sun.javacard.ant.tasks.DeployCapTask" classpathref="classpath" />
      <taskdef name="convert" classname="com.sun.javacard.ant.tasks.ConverterTask" classpathref="classpath" />
      <taskdef name="verifyexport" classname="com.sun.javacard.ant.tasks.VerifyExpTask" classpathref="classpath" />
      <taskdef name="verifycap" classname="com.sun.javacard.ant.tasks.VerifyCapTask" classpathref="classpath" />
      <taskdef name="verifyrevision" classname="com.sun.javacard.ant.tasks.VerifyRevTask" classpathref="classpath" />
      <typedef name="appletnameaid" classname="com.sun.javacard.ant.types.AppletNameAID" classpathref="classpath" />
      <typedef name="jcainputfile" classname="com.sun.javacard.ant.types.JCAInputFile" classpathref="classpath" />
      <target name="init">
        <mkdir dir="${target.classes}" />
        <mkdir dir="${target.javacard}" />
      </target>
      <target name="clean">
        <delete dir="${target.classes}" />
        <delete dir="${target.javacard}" />
        <delete dir="${javacard.eeprom}" />
      </target>
      <target name="compile" depends="init" description="Compile source code to class files">
        <!-- Compile the java code from ${src} to ${classes} -->
        <javac debug="yes" optimize="no" srcdir="${source.java}" destdir="${target.classes}" source="1.5" target="1.5">
          <classpath refid="classpath" />
        </javac>
      </target>
      <target name="convert" depends="compile" description="Convert class files to cap files">
              <convert packagename="chaining" packageaid="0xF0:0x00:0x00:0x01:0x00:0x01" majorminorversion="1.0" classdir="${target.classes}" outputdirectory="${target.classes}" jca="true" exp="true" cap="true" debug="true" verbose="${verbose}" noverify="${noverify}">
                   <appletnameaid aid="0xF0:0x00:0x00:0x01:0x00:0x01:0x00:0x01" appletname="chaining.ChainingApplet" />
                   <exportpath refid="export" />
                   <classpath refid="classpath" />
              </convert>
      </target>
      <target name="copy-debug">
        <mkdir dir="${target.debug}" />
        <echo>Copying cap files</echo>
        <copy flatten="true" todir="${target.debug}" verbose="true">
          <fileset dir="${target.classes}" includes="**/*.cap" />
          <fileset dir="${target.classes}" includes="**/*.exp" />
          <fileset dir="${target.classes}" includes="**/*.jca" />
        </copy>
      </target>
      <target name="all" depends="clean, convert" />
    </project>

  • Photoshop .psd files converted to Unix Executable files

    I'm an illustrator and I store my art on CDs and DVDs. After a period of time my files are converted from Photoshop .psd files to Unix Executable files and I can't open them. What can I do to get my work back??? -and keep this from happening in the future. Why does it do this????
    Thanks for any help.

    The file sizes range from 22.2 MB to 67.9 MB.
    Size isn't the issue then. Linc was asking that question because we see that with other file types. Older fonts in particular, which have all of their data in the resource fork. If that gets stripped, you end up with a zero byte file.
    Does that mean I'll have to go through the Adobe authorization process for Photoshop again?
    If the version of Photoshop you're currently using is already activated, then no. Either way, it has nothing to do with .psd files showing as UNIX executables.
    In Windows, any file that doesn't have an association to a program is displayed as a white, dog-eared piece of paper with the Windows logo in the middle. That's Windows' way of saying, "I have no idea what this is." In OS X, (except for those files which actually are UNIX executables), displaying them as such is OS X's way of saying the same thing.
    I thought I was home free when the icon changed to a thumbnail picture of the illustration, but PS refuses to open it saying it is not a Photoshop file. ???
    Now that is weird. As of Snow Leopard, Apple put the old Type and Creator codes to rest. It will read them as a last resort to try and identify an older file, but none of Apple's applications add them to any file they save. For better compatibility with Windows, and OS X's own underlying UNIX core, file extensions have taken their place. So adding a .psd extension should have worked. Without playing with one of your files, I couldn't tell you why Photoshop declared it wasn't a valid .psd image.
    On a side note, Apple added Uniform Type Identifiers to OS X to keep things separate. A big problem in Windows is that multiple apps may use the same file extension. EPS is a big one in printing. So you have Photoshop, Illustrator, Freehand, Quark and others all using .eps for Encapsulated PostScript files. However, Windows can only associate one application to any given extension. So if Illustrator happens to be the one tagged to .eps files, it will try to open any file ending in .eps, no matter what program actually created it. OS X keeps them separate with Uniform Type Identifiers. So even though multiple files may have .eps file extensions, the extra metadata keeps track of what program it actually belongs to.
    This is what is part of the LaunchServices database, and was why it was my first suggestion. If that database is wonky, you'll see weird things like this. Have you tried clearing it yet?
    The files are fine when newly burned to CD. It is only months, or years, later that they become Unix Executable Files.  This has happened to just about all of my CD backups and it's frustrating to think that CD backup doesn't work across newer OSs and Photoshop upgrades. I suspect that may be the problem, but it just shouldn't happen.
    That shouldn't make a difference. I've got a bunch of very old files created in Photoshop back from OS 8 on CD. No file extensions, as nothing did at the time. Just Type and Creator codes. They all open fine in PS CS5.5 in Snow Leopard, though the native Photoshop files do need to have a .psd extension added.

  • Help! FCE project files converted to unix executable files

    I recently added a USB external drive and put my FCE project files on it. When I rebooted, the files now are unrecognizable by Final Cut Express as project files. In the finder they are now recognized only as unix executable files. Is there any way to reverse this problem. I really can't afford to lose all that work! Thanks

    How is the drive formatted? If it's not Mac formatted you may have a problem. It may be recoverable. How many project files are you talking about? What about the media?

  • Jpgs uploaded from ext drive unwantedly converted into Unix executable file

    I uploaded 20 gigs of jpegs from an external hard drive. The jpegs showed up on my hard drive, but as unix executable files. They still take up the same 20 gigs of space, but I can't open them since they're unix.
    Any suggestions?

    but the only one that works in the "import and open with iPhoto" option.
    So it seems they haven't lost their essential imageness, ie they are photos not unix executables. They are just presenting wrongly.
    Download FileList and select half a dozen to batch change by dragging them into the FileList window, and alter them by adding the .jpeg extension, and they should all change without needing to move them.
    You may have to play around with that application a bit to get the hang of it but after doing a few trial experiments, to learn what to put where it is a very useful little utility. Once satisfied on its usage you can then batch change in bulk.
    roam

  • Help me to convert Java and Jsp Files into WAR File!!!!

    I need someone to help me to convert some java servlet files and jsp files into a WAR file. I need it URGENTLY and I'll be very grateful to anyone who is willing to help me! My email is [email protected] Thanks!!!!

    Are the Oracle JDBC drivers 11g used?
    oracle.jdbc.driver.OracleDriver is not supported in 11g drivers.
    Please replace with:
    oracle.jdbc.OracleDriver

  • Problems converting java to class file

    I copied a chat applet, but whenever i try to convert the chat.java to chat.class i get the following.
    C:\Program Files\Apache Group\Apache\htdocs>c:\jdk12~1.1\bin\javac chat.java
    chat.java:13: Public class Chat must be defined in a file called "Chat.java".
    public class Chat extends Applet implements Runnable {
    ^
    Note: chat.java uses or overrides a deprecated API. Recompile with "-deprecation" for details.
    1 error, 1 warning
    Any assistance will be greatly appreciated.

    Please check for the case in the file name.Check if you have saved the file as Chat.java and not as chat.java

  • Executable files in Java...

    Hello, all. I am fairly new to Java and have a question. I know that Java is an interpreted language, and all files are run throught the interpretor as they run. Is there a way to create an executable file (i.e. .exe in Windows) to run a Java app? I am interested in application programming and I have dabbled in C++ and VB, and with them it is easy to create executables. Can this be done in Java? Any help with this would be great. Thanks a lot, guys!
    James McConnell
    Your Resident Musician

    Hello, all. I am fairly new to Java and have a
    question. I know that Java is an interpreted
    language, and all files are run throught the
    interpretor as they run. Is there a way to create an
    executable file (i.e. .exe in Windows) to run a Java
    app? I am interested in application programming and I
    have dabbled in C++ and VB, and with them it is easy
    to create executables. Can this be done in Java? Any
    help with this would be great. Thanks a lot, guys!
    James McConnell
    Your Resident MusicianOf course, my friend! There's a way to do it. If you download the Java IDE from this website, SunOne Community Edition version 4, you can accomplish that ( at least that's the way I've done them). This Java IDE creates a folder that is executable in Windows, it's called a JAR file (Java ARchive executable file), or run it on any operating system that is Java Enabled.
    With SunOne, you can do it this way:
    1) Click on File
    2)Select New
    3) Then select JAR Archive
    4) In the wizard, follow the steps which tell you the java files that are needed to run the application (because sometimes a programs comprises more than one class)
    5) Create a Manifest
    If this doesn't work for you, find information about JAR Archive files on the Internet because this is the way to make executable programs in Java. Good Luck!!

  • How can I open a subvi when running a vi in an application (executable file)

    I have a vi that I converted into an executable file.  I would like to run it and at the same time be able to open the front panel of one of its subvis.  Does anybody know how to do that?
    Thanks,
    Jerome.

    You can set the SubVI to "Open Front Panel when Called" and "Close Afterward if Originally Closed" - that makes it a pop-up window. When your main calls it, the subVI window opens up. You do stuff, click the DONE button, and it disappears, and the main is up front again. (Make sure your subVI is MODAL if you do this).
    You can use the VI SERVER to load the VI, given a path to it. You can set the subVI to "Open Front Panel when Loaded", or you can set FRONT PANEL.OPEN to TRUE when you want it to appear, and FALSE when you want it to go away.
    You can make a subpanel on your main, and have the subVI inserted into that.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Unix executable files - is it a virus

    I'm not sure if I'm in the right space but...
    Our backup hard disc which is connected to a small network (five machines) has suddenly had all the Quark files converted to "Unix Executable File" with a scarey looking devil icon on it.
    Is this a virus. How do we get rid of it. Are the files gone for ever? The hard disc is not connected directly to the internet but is a storage place for files downloaded from it. However none of the machines connected to the web have had the same thing happen, as yet.
    Desperately looking for an answer.
    Thanks for your help
    Bruce

    Bruce,
    If your network is connected to the internet, so is your network storage device, er, backup hard disk. Make sure that your network is properly configured and protected.
    Scary devil icon? Would it resemble one of these beasties or is it more like this one?
    Now for the good news: This is common for Quark files.
    I googled the problem and here are some links that tell you how to fix the problem: Quark 3, Quark 6, a macfixit tip, and a macosx.com post.
    Camelot's advice may not work, or may only work once. See the links for details.
    Hope this helps.
    -Wayne

  • Converting java files to executable files

    I want to turn my written code into an executable file that can be sent to someone who does not have a compiler and can still run it. I asked my professor about it and he said that there was a program that you could download that would do this for you. Does anyone know of a program and where I can download it from?

    I want to turn my written code into an executable file that can be sent to someone who does not have a compiler and can still run it.
    From that the statement above I suggest you quit asking the moron, aka professor anything. So that someone who does not have a compiler!!! What !!!! That is stupid. Obviously you meant, does not have the JRE installed. And that has nothing to do with an exe for windows. You can sort of be forgiven, being a student, but this idiot should have set you straight when you asked the question. Get your money back and go somewhere else......

  • How to convert java class to dll file for using in Microsoft Technology(.n)

    hey hemmj !!!!!!
    nice replying , first of all i d like to say thanks for response me so frequently..... i like such type of guy... i d never forget ur online support.
    hey buddy, i ve a problem with applet application...
    i m working on java chat server build on swing applet. As it is chat server, it is divided into two parts, one is server application and other is client application. I want to run this server app on the client server and the basic thing with this site is that it is running on .net platform(Microsoft). and the other app ll running on the client machine or end user. Now the problem is that this site would run only if the server app ll be run on server. This server app ll open the socket of server, which ll listen the request of the user...... So, the requirement is to convert this java sever class file into dll file and register this dll file with the IIS server.So, It run and stop with the IIS server.
    I ve already search the way to convert the java class file into dll file. This is possible in such way........... below code is for the java class file...
    import java.net.*;
    import java.io.*;
    import java.util.*;
    public class chatServer
    public static void main(String args[]) throws Exception
                        ServerSocket sersoc=new ServerSocket(1234);// Any port number above 1000 should do
    // as most ports below 1000 are used by system
    Vector socvec=new Vector();
    String data="";int i,j=0;
    BufferedReader in;
    //System.out.println("Listening of port " + sersoc.getLocalPort());
    //System.out.println("Waiting for connections...");
    while(true)
    Socket soc=sersoc.accept();
    socvec.addElement(soc);
    chatServerReadThread csrt=new chatServerReadThread(socvec, soc);
    in=new BufferedReader(new InputStreamReader(soc.getInputStream()));
    PrintStream out=new PrintStream(soc.getOutputStream());
    out.println("Connected to chat server");
    out.flush();
    data= in.readLine();
    for(i=0;i<socvec.size();i++)
    soc=(Socket)socvec.elementAt(i);
    out=new PrintStream(soc.getOutputStream());
    out.println(data + " connected");
    out.flush();
    //System.out.println(data + " connected");
    csrt.start(); // error is comming from here..... plz help me.
    class chatServerReadThread extends Thread
    Vector socvec;
    PrintStream out;
    chatServerReadThread(Vector socvec, Socket soc)
    this.socvec=socvec;
    try
    out=new PrintStream(soc.getOutputStream());
    }catch(Exception e){}
    public void run()
    try
    String data;
    Socket soc;
    BufferedReader in;
    while(true)
    for(int i=0;i<socvec.size();i++)
    soc=(Socket)socvec.elementAt(i);
    in=new BufferedReader(new InputStreamReader(soc.getInputStream()));
    if(in.ready())
    try
    data=in.readLine();
    if(data.charAt(0) == ']')
    data = in.readLine() + " exited";
    //System.out.println(data);
    socvec.removeElement(soc);
    for(int e=0;e<socvec.size();e++)
    soc=(Socket)socvec.elementAt(e);
    out=new PrintStream(soc.getOutputStream());
    out.println(data);
    out.flush();
    else
    for(int e=0;e<socvec.size();e++)
    soc=(Socket)socvec.elementAt(e);
    out=new PrintStream(soc.getOutputStream());
    out.println(data);
    out.flush();
    }catch(Exception e){socvec.removeElement(soc);}
    }catch(Exception e){e.printStackTrace();}
    first i ve made the jar file of this class
    jar cvf chatServer.jar chatServer.classafter getting the jar chatServer.jar. I ve opened the .net dos prompt and
    type this command which ll make dll file automatically....
    > jbimp /t:library chatServer.jar
    And you'll see the following output:
    Microsoft (R) Java-language bytecode to MSIL converter version 1.1.4322.0
    for Microsoft (R) .NET Framework version 1.1.4322
    Copyright (C) Microsoft Corp 2000-2002. All rights reserved.
    Created chatServer.dll
    I cant get the problem origin from where it is comming, when i tried to convert it into .dll file it shown an error that, it did not recongnized the method in first class
    public static void chatServerReadThread.start() method
    is not recognized by .net dos prompt commnad. But when i omit this method it gets created the .dll file. This start method is basically the default method of thread class that run the thread from the same class..
    By vewing the code u can visulize the thing,, i ve marked the code from where the error is comming.
    Plz do it as soon as possible, i ll waiting for ur reply......
    I ll be really thanking u for that....
    Thanx and regards
    Niraj Kumar Singh

    I wonder if this will work:
    jbimp /t:exe chatServer.jar
    Your chatServer is an application that can be started from the commandline.
    A dll is a library to be used in com, com+, other executables or ....

  • How to convert the javasource file(*.class) to execute file(*.exe)?

    How to convert the javasource file(*.class) to execute file(*.exe)?
    thank you!

    Although i have seen a few programs (that are platform specific) that will embed a small jvm into an exe with your class file, it is generally excepted that you cannot create an executable file using java. The JAR executable file is probably the closest your going to get
    Pete

Maybe you are looking for

  • Creating contract reference with Quotation - using bapi or fm

    Hi Friends Currently I am creating contract using function module sd_saleorder_create function module.But as per new requirement we have to create contract referenced with quotation number. Please suggest the suitable bapi or function module.if you s

  • Database access code prob

    Hi there, can anyone see if there is anything wrong with the code below. I can see that the variables have values when outputting to dos but I keep getting a NullPointerException. Any ideas why? Error: Exception in thread "main" java.lang.NullPointer

  • Integration of Hyperion PS and Novell iChain

    Hello all,We are now proposing a single-sign-on solution with Hyperion Performance Suite (HPS). It is known that IBM Tivoli works with HPS well.However, our client uses iChain currently in their system and so we may want to leave this unchanged.Do an

  • General questions abouti ZiiO 10"

    I'm asking here because I don't know where else to ask, so if anyone know a better place please tell me. Does anyone know which text formats ZiiO 0" supports? And also, how are you supposed to connect to internet on public places, do you need to buy

  • Keyboard modifier keys

    I have a new MacbookPro that I sometimes use with a bluetooth keyboard (Logitech DiNovo Edge). Because the bluetooth keyboard is set for Windows, I used the keyboard Preference Pane to switch the modifier keys for option and command (or Apple) keys.