Can't set classpath or classloader for JavaCompiler!
I have a class that I load using my own class loader. I know the class is loaded because I can instantiate it using reflection.
Then, in my code I try to compile a source file which references (via import) the class I loaded, and I get a package does not exist error on the compile.
I have tried everything I could think of. Currently, I'm doing this (read the comments):
StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);
// trying to force the filemanager to use my class loader when resolving class paths... doesn't ever get called
// except when loading annotation processors, though!!!
ForwardingJavaFileManager<JavaFileManager> ffm = new ForwardingJavaFileManager<JavaFileManager>(fileManager)
@Override
public ClassLoader getClassLoader(Location location)
if (location == StandardLocation.CLASS_PATH)
return serviceClassLoader;
return super.getClassLoader(location);
// This returns a list of File objects which were loaded in my class loader.
// The File objects are created from the URL's I load in the class loader, and have the form:
// "C:/Some/Path/To/File.jar"
List<File> compileClassPath = serviceClassLoader.getClassPathFiles();
// Adding the bin directory which contains the .class files of my app (in Eclipse)
compileClassPath.add(new File("./bin"));
// Attempt to add the bin dir with the .class files from another project - this is where the classes are that are failing to load
compileClassPath.add(new File("C:/Documents%20and%20Settings/David/workspace/CoreServices/bin/"));
fileManager.setLocation(StandardLocation.CLASS_PATH, compileClassPath);The output I'm seeing includes:
CentralLoggingService_CentralLogService_Listener.java:5: package com.dave.service.logging does not exist
import com.dave.service.logging.CentralLoggingService;
^
CentralLoggingService_CentralLogService_Listener.java:7: cannot find symbol
symbol: class CentralLogService
public class CentralLoggingService_CentralLogService_Listener implements MessageListener<CentralLogService>So, basically, I need to know how to either:
1) Set the class path for the JavaCompiler so that it will load classes that are required by the source being compiled, or...
2) Set the classloader the JavaCompiler uses to resolve those classes.
I've tried everything I could think of, even reading through the compiler source, and nothing has worked yet.
Can anyone help?!?
Hi,
I am not sure but the argument to new File() looks dubious to me.
You seem to be mixing URL and filename syntax.
What does this do?
class FileTest {
public static void main(String[] args) {
system.out.println(new File("C:/Documents%20and%20Settings/David/workspace/CoreServices/bin/").exists());
}if its false then that directory doesn't exist.
I would use backslashes (don't forget to escape them) and spaces, and no trailing path separator - like this
class FileTest {
public static void main(String[] args) {
system.out.println(new File("C:\\Documents and Settings\\David\\workspace\\CoreServices\\bin").exists());
}Play around with that till you can create a File object that exists and isDirectory().
When I have done this in the past, I have used the existing classpath to set the classpath for invoking the compiler. For example this snippet from the hickory project at [https://hickory.dev.java.net/source/browse/hickory/trunk/code/src/net/java/dev/hickory/testing/Compilation.java?rev=11&view=markup|https://hickory.dev.java.net/source/browse/hickory/trunk/code/src/net/java/dev/hickory/testing/Compilation.java?rev=11&view=markup]
List<String> optionList = new ArrayList<String>();
optionList.addAll(Arrays.asList("-classpath",System.getProperty("java.class.path")));
optionList.addAll(Arrays.asList(options));
JavaCompiler.CompilationTask task = compiler.getTask(out,jfm,diagnostics,optionList,null,jfos);An advantage of that technique is that you don't have the path hard coded in the program. Useful if someone else wants to run it.
In fact, you might find it useful to use the hickory testing package which provides an abstraction over the compiler API. See the javadoc starting here
[https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/testing/Compilation.html|https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/testing/Compilation.html]
Bruce
Similar Messages
-
How can i set the alternating colors for a table rows
Dear All,
Please any one help me how can i set the Alternating colors for Table Rows.
i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.Hi,
The design property in Table properties should work for your requirement. Select "alternating" value for design.
Please see the API below:
design
Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
alternating - The table rows are displayed alternately in a different color.
standard - The table background has one color. The individual table rows are displayed with grid net lines.
transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
Regards,
Jaya.
Edited by: VJR on Jun 17, 2009 6:43 PM -
How can I set up my Mac for two users to share photos, music etc
How can I set up my Mac for two users to share photos, music etc?
On the Mac with the libraries you want to share:
iTunes Preferences click on the Sharing tab and put a tick in 'Share by library on local network'.
iPhoto Preferences click on Sharing and put a tick against 'Share my photos'.
When launching the same apps on other Macs on the network the libraries should be available, listed on the left. -
How can I set up anApple ID for my 9 years old. Every time I try it tells me he is bolew the min age. If this is the case how can he download free games and how can he redeem his birthday $30 iTunes card? I dont want him to use my ID as it has my credit card details.
I'm very fustrated with this as it seems the Apple kit is for 13 years and older only.
Cheers
BradThat's great your 9-yr-old is responsible enough to handle an iTouch!
There's no way around the age limit. I suggest a family account that you, an adult, control. -
How can I set a point size for staticTexts
Hi everyone
How can I set a point size for staticTexts?
staticTexts.add({staticLabel:"Please select a tedious job"});
thanks
TeetanThank you Vandy
Thank you pixxxel schubser
And thank you Peter Kahrel
But Ho can call function for this script?
//======================================================================
Thank you Vandy
Thank you pixxxel schubser
And thank you Peter Kahrel
But Ho can call function for this script?
//======================================================================
var stringList = [
"01. digit at end: superscript",
"02. digit at beginning: superscript",
"03. notes applied to italic (table only)",
"04. Initial Cap+ markup",
"05. Small Cap + markup",
"06. del [ ] + markup",
"07. add an EM at beginning",
var win = new Window("dialog","Tedious Jobs_(\"TDJs\")");
this.windowRef = win;
win.grp = win.add ("group", undefined);
win.grp.alignChildren = "top";
win.grp.margins = 5;
win.grp2 = win.grp.add ("group", undefined);
win.grp2.orientation = "Column";
win.grp2.alignChildren = "left";
win.grp3 = win.grp.add ("group", undefined);
win.grp3.orientation = "Column";
win.grp3.alignChildren = "fill";
win.grp2.Txt1 = win.grp2.add ("statictext", undefined, "Please select a tedious job");
win.grp2.Txt1.indent = 0;
win.grp2.Ddl1 = win.grp2.add ("dropdownlist", undefined, stringList);
win.grp2.Ddl1.selection = 0;
win.grp2.sTxt1 = win.grp2.add ("statictext", undefined, "________________________________________");
win.grp2.sTxt3 = win.grp2.add ("statictext", undefined, "Be careful and pay attention in what you selected.");
win.grp2.sTxt3.graphics.font = ScriptUI.newFont ("Arial", "Regular", 10);
win.quitBtn = win.grp3.add("button", undefined, "Ok");
win.cancelBtn = win.grp3.add("button", undefined, "Cancel");
win.defaultElement = win.quitBtn;
win.cancelElement = win.cancelBtn;
win.quitBtn.onClick = function() {
win.close();
if (w.show() == 1) {
var mRes = mStringList.selection.text;
mSelection = mStringList.selection.index;
app.insertLabel( "mDialog", mSelection.join() ); // to store dropDownList positions (as a string "," delimited)
return mRes;
} else { exit(); }
app.doScript('main()', ScriptLanguage.JAVASCRIPT, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "TDJs");
function main(){
var myObject;
var myCheckSelection = false;
if(app.documents.length > 0){
if(app.selection.length > 0){
switch(app.selection[0].constructor.name){
case "InsertionPoint":
case "Character":
case "Word":
case "TextStyleRange":
case "Line":
case "Paragraph":
case "TextColumn":
case "Text":
case "Cell":
case "Column":
case "Row":
case "Table":
mySelected = app.insertLabel( "mDialog", String(mySelection.selectedIndex) ); // to remember selection’s set
if(app.selection && app.selection[0].hasOwnProperty ("tedious_works") );
tedious_works();
else{
alert("Wrong selection. Please try again.");
function tedious_works() {
app.findGrepPreferences = app.changeGrepPreferences = null;
switch (mySelection.selectedIndex){
case 1: {
app.findGrepPreferences.findWhat = "^\\d";
app.changeGrepPreferences.position = 1936749411;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
break;
case 2:{
app.findGrepPreferences.findWhat = "(?i)\\(note.+\\)$";
app.changeGrepPreferences.appliedCharacterStyle = "Italic";
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "(附[註注].+)$";
app.changeGrepPreferences.appliedCharacterStyle = "Italic";
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
break;
case 3:{
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<a";
app.changeGrepPreferences.changeTo = "A";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<b";
app.changeGrepPreferences.changeTo = "B";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<c";
app.changeGrepPreferences.changeTo = "C";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<d";
app.changeGrepPreferences.changeTo = "D";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<e";
app.changeGrepPreferences.changeTo = "E";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<f";
app.changeGrepPreferences.changeTo = "F";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<g";
app.changeGrepPreferences.changeTo = "G";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<h";
app.changeGrepPreferences.changeTo = "H";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<i";
app.changeGrepPreferences.changeTo = "I";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<j";
app.changeGrepPreferences.changeTo = "J";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<k";
app.changeGrepPreferences.changeTo = "K";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<l";
app.changeGrepPreferences.changeTo = "L";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<m";
app.changeGrepPreferences.changeTo = "M";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<n";
app.changeGrepPreferences.changeTo = "N";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<o";
app.changeGrepPreferences.changeTo = "O";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<p";
app.changeGrepPreferences.changeTo = "P";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<q";
app.changeGrepPreferences.changeTo = "Q";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<r";
app.changeGrepPreferences.changeTo = "R";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<(?<!’)s";
app.changeGrepPreferences.changeTo = "S";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<t";
app.changeGrepPreferences.changeTo = "T";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<u";
app.changeGrepPreferences.changeTo = "U";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<v";
app.changeGrepPreferences.changeTo = "V";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<w";
app.changeGrepPreferences.changeTo = "W";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<x";
app.changeGrepPreferences.changeTo = "X";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<y";
app.changeGrepPreferences.changeTo = "Y";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<z";
app.changeGrepPreferences.changeTo = "Z";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
break;
case 4:{
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<A";
app.changeGrepPreferences.changeTo = "a";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<B";
app.changeGrepPreferences.changeTo = "b";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<C";
app.changeGrepPreferences.changeTo = "c";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<D";
app.changeGrepPreferences.changeTo = "d";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<E";
app.changeGrepPreferences.changeTo = "e";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<F";
app.changeGrepPreferences.changeTo = "f";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<G";
app.changeGrepPreferences.changeTo = "g";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<H";
app.changeGrepPreferences.changeTo = "h";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<I";
app.changeGrepPreferences.changeTo = "i";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<J";
app.changeGrepPreferences.changeTo = "j";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<K";
app.changeGrepPreferences.changeTo = "k";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<L";
app.changeGrepPreferences.changeTo = "l";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<M";
app.changeGrepPreferences.changeTo = "m";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<N";
app.changeGrepPreferences.changeTo = "n";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\<O";
app.changeGrepPreferences.changeTo = "o";
app.changeGrepPreferences.underline = true;
app.selection[0].changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences = app.changeGrepPreferences = null; -
Can we set a default value for the container variable in BPM?
Can we set a default value for the container variable.?
Suppose if i have a loop step and i have given a container variable i=5 as end condition.What value will it take during its first execution?Can we set the value for container before a recieve step?Hi
Define Container Variable of Type integer and Category Simple Type .Use Condtion in Loop.
In Container Operation Step Assign value and Use Expression to
Increase or Decrease Valus according to your operation.
look Pattern 4 in this blog to understand Container Operation
/people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-1 -
Can I set the default locale for jvm
Hi,
Can I set the default locale for jvm?
How to do it?
PanMy windows default locale is chinese .I have thought of your opinion. But in
windows nt , if I change the locale , all the environment will be
destroyed(just like reinstall it , it's difficult for me) . So , Is there
any other approach?
Dimitri Rakitine <[email protected]> wrote in message
news:[email protected]...
Did you try to change the locale in the Windows control panel?
(Control panel -> Regional Options -> Your locale)
Pan YangBin <[email protected]> wrote:
I have tried changing this system property and other properties such
as -Duser.language=en -Dfile.encoding=Cp1252 , but all these properties
did
not changed, you can get this infomation from the log file .Maybe these
system properties are readonly.
Thanks very much.
Pan
Chris Halstead <[email protected]> wrote in message
news:[email protected]...
Try adding -Duser.region=US to the java command line used to start
WebLogic...
-chris
"Pan YangBin" <[email protected]> wrote in message
news:[email protected]...
Hi,
The problem exists in my project still exist.That is it.
When I did not set weblogic.jsp.encoding to GB2312 in my web
application(web.xml), and when the jsp file contain's chinese , the
output
will be error(error chinese) .And when I did not set it , the output
is
correct, but when I use request.getParameter("SomeFormElement")(theelement
inputed chinese), the return value is error(still chinese error).And
when
I
am in windows nt english version and do not set this property, all
these
two
problems dispear. And I try to compare the java files those were
generated
by weblogic from the jsp file , there is only two additional clause
in
the
java file. That's it:
((weblogic.servlet.jsp.JspWriterImpl)out).setEncoding("GB2312");
response.setHeader("Content-Type", "text/html; charset=GB2312");
(the web.xml has <context-param>
<param-name>weblogic.jsp.encoding</param-name>
<param-value>GB2312</param-value>
</context-param> to be set
So, I think maybe it works well if I change the default locale toenglish.
And unfortunately, your method is also failed.(I have to use weblogic
in
chinese environment)
Would you please help me to solve this problem?
Pan
Dimitri Rakitine <[email protected]> wrote in message
news:[email protected]...
Try java ... -Duser.language=en ...
or mode con cp select=437 in the command prompt before running
weblogic.
Pan YangBin <[email protected]> wrote:
I'm using weblogic server 5.1 sp6 in chinese environment, and I
want
weblogic compile my jsp with en_us locale . So I can't use
Locale.setDefault(new Locale(...)) to set the default locale ,butI
really
want someway configure.
Pan
Dimitri Rakitine <[email protected]> wrote in message
news:[email protected]...
Locale.setDefault(new Locale(...)) ?
Pan YangBin <[email protected]> wrote:
Hi,
Can I set the default locale for jvm?
How to do it?
PanDimitri
Dimitri
Dimitri -
How can I set the desktop image for client computers?
How can I set the desktop image for client computers using ARD or terminal?
How can I set the desktop image for client computers using ARD or terminal?
-
How can I set up auto respond for email
How can I set up auto respond for email?
Hey there jimmac169,
It sounds like you want to have the Mail app automatically reply to emails that come in. You can do this in the app itself, but in order for the function to work, Mail needs to be open. Take a look at this info from the following article:
Mail (Yosemite): Reply to, forward, or redirect messages
Automatically reply to or forward messages
Mail must be open before it can automatically forward or reply to messages. If you want to send automatic replies when Mail isn’t open—like when you’re on vacation—check with the provider of your email account.
Choose Mail > Preferences, then click Rules.
Click Add Rule, then type a name for the rule.
Indicate whether any or all of the conditions must be true for the rule to be applied.
Set the conditions that determine which messages to automatically reply to or forward.
Choose options from the “Perform the following actions” pop-up menu.
Forward messages: Choose Forward Message from the first pop-up menu, then enter the email addresses where you want to receive the forwarded messages. Click Message, then enter any text you want to include with the forwarded message. For example, you could explain that you’re automatically forwarding messages.
Reply to messages: Choose “Reply to Message” from the first pop-up menu, click “Reply message text,” then enter your reply. Mail includes the full text of the original message in your reply.
Click OK.
Carefully consider the rules you create. If they’re too broad, messages can be sent inadvertently or create loops (replies to replies you sent). If possible, test the rules.
Thank you for using Apple Support Communities.
All the very best,
Sterling -
Can I set individual alerts (tones) for each calendar events/ reminders
Can I set individual alerts (tones) for each calendar events/ reminders
Thanks On my phone, these are the options under Menu>Settings & Tools>Sound Settings>Alert Sounds: 1. TXT Message 2. Multimedia Message 3. Voicemail 4. Emergency Tone 5. Missed Call . And under Service Alerts: 1. ERI 2. Minute Beep 3. Call Connect 4. Charge Complete 5. Software Update. So nothing there for the calendar. And options from the calendar that I can see are Add (here you can change the tone for one event or recurring event, but not set a default tone for the event alarm), View (gives you the options of viewing an existing event in more detail, adding a new one, and the same choices from the Options list on the first screen where you are viewing the entire month), and Options (1. lets you view weekly/monthly, 2. Go To Today 3. Go To Date 4. Search 5. Erase All 6. Erase All Old 7. Send. So as far as I can see, there's no way to do it. I have been through all the Settings and Tools menus... and the Events menu. But...I have just discovered that if I delete ALL my alarms and change the Ringtone for the first alarm I set, that ringtone becomes the default ringtone. I will try deleting ALL my events and starting fresh with a new tone and see if that works!
-
Can i set a default transition for final cut pro x
Can I set a default transition for Final Cut Pro X? I'm doing a multicamera edit and would like all edit points to have a cross dissolve transisiton. Can I make this happen by default?
Thanks!Cross dissolve is the default transition. It's applied with Cmd-T.
-
I can not set up a firewall for my computer. I can get to the place I'm supposed to get to but am unable to click start.
If the Start Firewall button is grey (inactive) check to see if the pad lock is "locked" in the lower left corner of the screen. If so, click it and enter the Administrator password to unlock it. Then you can start the firewall.
Hope this helps. -
HT204380 Can I set my phone number for FaceTime on the iPad mini?
Can I set my phone number for FaceTime on the iPad mini?
Using FaceTime http://support.apple.com/kb/ht4319
Troubleshooting FaceTime http://support.apple.com/kb/TS3367
The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
http://tinyurl.com/32drz3d
Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/TS4268
Cheers, Tom -
Mail&Exchange, where can i set the sync period for mails?
Hello everybody!
Where can i set the sync period for my mails with an exchange account? At the moment, i can only see the mails since january, i need to see all of my mails since 2010...
Thanks!
Greets
Janfirst you make a bookmark for WINDOWS LIFE MAIL:
https://support.mozilla.com/en-US/kb/how-do-i-use-bookmarks#w_how-do-i-create-a-bookmark
then you can make a shortcut of it(drag it) where you want it:
https://support.mozilla.com/en-US/kb/Sorting%20bookmarks#w_rearranging-manually
add bookmark to toolbar:
http://support.mozilla.com/en-US/kb/Bookmarks%20Toolbar#w_add-bookmarks-to-the-bookmarks-toolbar
thank you
Please mark "Solved" the answer that really solve the problem, to help others with a similar problem. -
For the Iphone 5C, can I set up a drawing for a passcode lock or is it just numbers?
For the Iphone 5C, can I set up a drawing for a passcode lock or is it just a number lock passcode
You can set up a 4-digit numerical passcode or a longer, complex password including letters and number. A pattern lock is not an option.
Maybe you are looking for
-
How do i rename multiple files at once?
i have quite a few file groupings that i would like to rename without having to click on each one individually. I would like to either rename them serially (ie: tree a, tree b, ..., tree x) or just tack on a name to the beginning of each file name (i
-
HELP, Premiere not working for me!
Iv'e been working on a long project on Adobe Premiere Pro CC for a couple of days, it's been fine. I left the house for an hour, came back went to open my project. The project opens but it won't let me use any of the options at the top or let me impo
-
I am having problems playing half my games on facebook because of abod flash player is there any way around this?
-
Hi , Is there any way can we call BAPI's in java. If yes, could you pls tell me the required jar files for that or any useful sites. Thanks in Advance JM
-
What happens to my apps, iTunes card, and iCloud storage if I change my Apple ID?
What happens to my apps, iTunes card, and iCloud storage if I change my Apple ID?