Is it possible to change the default file encoding?

I have just learned that the "file.encoding" system property should be treated as read-only.
(http://developer.java.sun.com/developer/bugParade/bugs/4163515.html)
I am using this property to tell javac that the command arguments file has some other encoding than the system deafult, like this:
javac -J-Dfile.encoding=UTF-8 @files-to-compile.lst
On windows xp with us english locale it worked for all the SDK releases I checked, but for Windows 2000 Japanese Edition only one of the J2SDK 1.4.1 releases worked.
My question is: is there an acceptable way to tell the JVM what the default encoding is? Or inform javac about the encoding of the argument file?
The reason for having a UTF-8 encoded javac argument list file is that our application generates Java source files that can have unicode characters in their names. Seemingly Windows supports unicode file names so I did not want to restrict file names to those supported by the system encoding.

Use javac's "-encoding" option.
$ javac 
Usage: javac <options> <source files>
where possible options include:
  -g                        Generate all debugging info
  -g:none                   Generate no debugging info
  -g:{lines,vars,source}    Generate only some debugging info
  -nowarn                   Generate no warnings
  -verbose                  Output messages about what the compiler is doing
  -deprecation              Output source locations where deprecated APIs are used
  -classpath <path>         Specify where to find user class files
  -sourcepath <path>        Specify where to find input source files
  -bootclasspath <path>     Override location of bootstrap class files
  -extdirs <dirs>           Override location of installed extensions
  -d <directory>            Specify where to place generated class files
  -encoding <encoding>      Specify character encoding used by source files
  -source <release>         Provide source compatibility with specified release
  -target <release>         Generate class files for specific VM version
  -help                     Print a synopsis of standard options

Similar Messages

  • I want to change the default file type in the Open File dialog - e.g. from Word to All Files

    I want to change the default file type in the Open File dialog - most recently specifically in Adobe Acrobat, from Adobe Files to All Files, so I don't have to do it again and again manually.  Is this possible?  Is it an OS setting or an app-specific setting?

    The Apps set the default to the file type it can open, sort of. However, there normally isn't a type specified. All document types that the app can handle will be offered.
    Adobe, and Microsoft, tend to roll their own dialogs, so they may not be standard. I don't have Acrobat, so I can't verify that. If Adobe is puting a file type selector in their open file dialogs, it would be up to them to store the preferences.
    EDIT: I checked Reader, and i see what you mean. Not terribly useful.
    Message was edited by: Barney-15E

  • Can we change the default file format 'BIN' of system to 'ASC' using table

    can we change the default file format u2018BINu2019 of system to u2018ASCu2019 using table TSOPE
    if possible:will it affect any system performance

    Hello Vincent,
    BIN(Binary) is default selection.and so we have to select ascii.to make myself more clear my queries is like:
    first for setting ascii what we need to enter in text box that is against ASCII.and
    secondly if we select ASCII will it affect system performance in anyways.

  • How to change the default save encoding of the dvm files when create dvm???

    When I creating a DVM(domain-value mapping) in Chinese on the ESB control and confirm it, then restarted the SOA service, the DVM that I created in Chinese disappeared from ESB control. All the maps(both English and Chinese ) are in DVM Repository.
    After I updated the encoding from ‘UTF-8’ to ‘GB2312’ in the three files below, and restarted the SOA service, the DVM in Chinese appeared on ESB control.
    But when I adding the second row in Chinese and save it, then restart the SOA service, the DVM in Chinese disappeared from ESB Control once again. Because the encoding in the three files below is updated from ‘GB2312’ to ‘UTF-8’ .
    Files:
    C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\metadata\files\dvm.def.xml
    C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\metadata\files\dvm\Chinese.xml.def.xml
    C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\content\files\dvm\Chinese.xml_1.0
    How to change the default save encoding of the dvm files when create dvm in ESB control ???

    I have the same problem.  When I updated to Mavericks now the bookmarks bar font is huge.  I liked it the way it was before.  I liked the smaller font.  Also wish I could change the color of the sidebar and font/folders too.
    I tried to see in preferences if there was anyway to change it, but I don't see anything there.

  • Is it possible to change the default URL when creating new hyperlinks?

    I'm currently working to take a 128 page catalog that was created in InDesign for print and turn it into a interactive PDF to post on our companies website. The catalog contains thousands of part numbers and I'd like to link each one to its corresponding stock status page on our website that gives current availability and pricing for any particular customer.
    So say I'm dealing with part number "XXXX". When I go to add the hyperlink the default web address it spits out is " http://XXXX ". Instead of that, would it be possible to change the default to " http://forums.adobe.com/discussion/XXXX/1 ". Obviously I just used this website as an example, but it would save so much time if I could avoid having to type the exact same URL every time.
    Or maybe is there a quicker way to do this other than what I am currently trying?
    Thanks

    I've found some external software applications that will do it, so that leads me to believe its not possible within ID CC.

  • Is it possible to change the default language of a computer remotely?

    Hi
    Is it possible to change the default language of a computer remotely?
    We have Apple Remote desktop and network home folders with managed prefs but i don't seem to be able to use either of these to change the default language of all of our macs to "British English".
    is there a UNIX command that can do this?

    The simple way is via the Internationalization settings via ARD or RDP or Screen Sharing, either via System Preferences or (if enabled) via the menu bar. If you're looking for a lower-level approach, there's not AFAIK a direct command for this. As for one possible approach, might [threadID=2106201|http://discussions.apple.com/thread.jspa?threadID=2106201] help?

  • How do I change the default file saving type

    I have seen this question all over the web, but none of the answers I have found apply to my version of Photoshop (CS5).
    I want to change the default file type when I save files.  I don't want PSD or PDF, I want PNG.
    I want to hit CTRL + SHIFT + S like normal, but I don't want to select PNG from the drop-down menu when I go to name my items.
    I don't want to create an action for each file I work with - I want this to be a default setting change across all of photoshop on every file.
    Any help?  Adobe has been of zero assistance. 

    I have already tried the "Actions" method - which is glitchy in and of itself!
    What I am doing is very simple - I am making photo slide shows.  I create a new file that is 1920 x 1280 (the size of my display) and then I open 100+ images.  I copy and paste each image into the 1920x1280 file so that all images display the same on my screen when I run the slides.  I re-size and adjust the position of each image so it appears how I want.
    So I copy and paste my first image into the 1920x1280 canvas and then hit F2 (the button I applied the save as PNG action to).  It saves the file.  Then I copy and paste another image into the file and hit F2.  Rather than creating a new file (or even a copy) Photoshop writes over the last file I made.  YAY!  More wasted time!
    It blows my mind that a function as simple as "Change default file type" is missing from such an expensive, accredited program.  How can their software engineers overlook something that hundreds of other people (like me) have posted a need for online?  Something so simple?  Andy why is it my job now to learn how to do scripting for Photoshop to add in a feature that should be standard?  Is that why I pay $50 a month for this software or why I bought CS5 outright for more than $1000?
    So that's what I am trying to do - make a slide show where each image is exactly the same size.  It seems the only option Adobe gives me is "WASTE MORE OF YOUR TIME"

  • Can I change the default 'File Type' for PL/SQL Source File to '*.prc' ?

    Want to change the 'default' extension for PL/SQL source to '*.prc'
    When navigating 'File' / 'Save As', and selecting the 'File Type' list box,
    The default 'File Type' for PL/SQL Source File is '*.pls'.
    Can I change the default 'File Type' for PL/SQL Source File to '*.prc' ?
    I have followed , 'Tools', 'Preferences' , 'File Types' and added '.prc' as 'Sql Script' file type, because (PL/SQL Source) is not present in the list.

    You can certainly overwrite the 'Save As' extension as you are saving the file. I have added an ER for more control over this functionality.
    sue

  • Possible to change the default spool request title ?

    Hello,
    I'm SAP Basis guy, I've been asked by our functional team if it would be possible to change the default spool request title.
    Our endusers have access to transaction SP01, where every morning, they can see the spools request that have been generated during the execution of night batches.
    Currently, the default spool name is displayed :
    Title or name of spool request LIST1S LOCL ZREPORTSUFFIX (in transactions sm37 and sp01)
    Is it possible to change the default name of this spool request with some abap coding ?
    Thank you.

    hi,
    goto transaction SPAD and change the default values as you require but i doubt whether you would be able to change the spool title after the job has been triggered i think it is nt possible
    but for further requests you can change it from SPAD
    reard if helpful
    vivekanand

  • Screen shots  - how do I change the default file type

    Screen shots using command, shift, 4: I used to get pdf files from the screen shot command, now I get PNG files. How do I change the default file type from PNG to PDF? PNGs are a pain.

    Also, there are utilities like OnyX that will change the screenshot settings.
    But this AppleScript is my favorite.
    Screenshot Settings 1.1 <http://scriptbuilders.net/files/screenshotsettings1.1.html>
    About:
    This application is a GUI method for changing the screenshot (screen capture) settings in Mac OS X v10.4 (Tiger).
    Note that you can also drag-n-drop a folder onto this application to change the default location.
    Tom

  • :-)  How can we change the default file path for Bank file ( dmee ) ?

    Hi All,
    We encounter a problem.
    Electronic bank file ( created after a F110 run ) are created, in an automatic way to the DIR_TEMP directory. ( On the SAP server )
    How can we change the default file path for Bank files ( dmee ) ?
    We'd like to specify another path.
    Thx for your help.
    Erwan

    Hello,
    Make sure that you have created the directory in transaction code AL11 with the help of basis consultants.
    You can link your PC directory to the application server.
    You can maintain the path whether your file needs to get saved in OBPM4 against your DMEE structure example GB_BACS etc.
    If you do not maintain any path in OBPM4, then the file gets saved to temporary directory. If you give the directory path name in OBPM4, then the file gets saved to that directory with numbers 0001, 0002, 0003 etc till it reaches 9999 and reset from the beginning.
    If you give the path as well as file name as ABCD, then the file gets generated to that directory folder with ABCD0001, ABCD0002, ABCD0003 etc. till it reaches ABCD9999 and reset from the beginning.
    Hope this solves your problem.
    Regards,
    Ravi

  • Is it possible to change the default PDF file name from 'LabVIEW Document.pdf'?

    My application uses the 'Automatically print front panel every time VI completes execution' functionality to print front panels.  When I have my printer set to 'Adobe PDF', a dialog pops up and the default file name is 'LabVIEW Document.pdf'.  Is there a way to programatically set the name to something other than 'LabVIEW Document.pdf'?
    I've already found a solution that manipulates the Windows registry, and I'm looking for another option.
    Brent

    Do a search, as this question has come up before. The solution centered on not using the Adobe PDF printer driver but one that is intelligent.

  • Changing the default file manager in XFCE

    How would I go about using Nautilus as the default file manager in XFCE instead of Thunar? I know it can be started up with 'nautilus --no-desktop', but how do I make this the default when opening folders from the desktop, menus, etc..?
    The main reason I want to do this is because Thunar doesn't seem to remember a folders last setting. For example, there are folders which I would like to permanently view as a list, sorted by date; but there are plenty of other folders where this is not suitable. Nautilus remembers settings for each folder, Thunar doesn't, and it gets annoying changing the view mode each time. Also network browsing is easier in Nautilus, and I also like the way it tells you how fast file transfers are going.
    Thanks very much,

    Well, it might be considered a dirty hack but it has worked for me in gnome before so it should also work in xfce.  Just edit the thunar.desktop file in /usr/share/applications and replace the Exec=thunar to Exec=nautilus --no-desktop and save the file.  Then any time thunar is launched, nautilus will be launched instead.
    Otherwise, you can edit the menu with the menu editor and change the File manager command and do the same in the panel icon properties.  Both methods will work.

  • How can I change the default "file type" in the open file dialog when using Firefox on certain web pages?

    I work for a bankruptcy attorney. We use the Court's file upload to file our documents. When I am on the Court's site and I have to pick a file to upload, the "open file" dialog box pops up. In Firefox, the default "file type" is always "image" files. I need it to be "all files". How can I change this setting?

    Two observations.
    First — "Tools-> ...." is specific to Acrobat X and XI. It did not exist prior to Acrobat X.
    Second — Acrobat 9 Pro / Standard (nor earlier release) does not support viewing a PDF page containing a scanned image and performing a right-click  ... Save Image As. 
    The context menu provided by Acrobat 9 Pro with a right-click on a scanned image is:
    The context menu,from a right-click with the TouchUp Object tool selected, for Acrobat 9 Pro is:
    So, to paraphrase what Paul Harvey used to say ... What's the rest of the story?
    Be well...

  • Changing the default file name while saving the PDF interactive form

    Hi All,
    I am generating an Interactive PDF form using webdynpro, but when I try to save the PDF to my local machine the default file name comes as "<b>unknown.pdf</b>" so I have to manually go and enter the name before saving it.
    Is there any way to change this default name so that I don't have to manually edit the file name each time when I want to save the generated PDF interactive form?
    Please reply soon.
    Thanks in advance!

    I am running into the same issue. Setting the desname parameter (e.g. desname=temp.pdf) doesn't have any effect. Has anyone found a solution to this?
    Thanks,
    Brian

Maybe you are looking for

  • Macbook air is stuck in a reboot loop after running Software Update.  It looks like a firmware update is failing.

    I have a first generation Macbook Air running Lion, and just ran software update to get the latest version of iTunes.  It appears I may have gotten a firmware update mixed in the bunch, and now it keeps trying to run the update at boot, failing, and

  • ITunes Crashes when Accessing Music Store (after 10.5.3 update)

    After updating to the latest version of MacOS X (10.5.3), iTunes crashes whenever I try to access the music store. Anybody else getting this problem? Here is the data off the crash report: Process: iTunes [302] Path: /Applications/iTunes.app/Contents

  • ITunes Wifi NEVER works using drag

    When I'm home and my iPhone 4S & MacBook Pro are on the same wifi network.....I try to drag & drop a song from my iTunes library onto my iPhone. It NEVER works! It always says "looking for iPhone" & then ejects my iPhone from the left sidebar of iTun

  • How can I pass the music in my iPod to iTunes?

    I lost all my music so I only have two or three songs in iTunes, but I still have my music in my iPod, and I would like to know how to copy all the music in my iPod to my MacBook. I've tried to copy the music but it doesn't give me that option. Sorry

  • Recordset fields...hiding/ignoring spaces?  ASP/VB

    Hi, When you display a recordset field on a page, is there any way to remove spaces? For example, if we are displaying a name from a recordset, and in the database it's like this: J R Hartely ...is it possible to display this on the page as: JRHartel