Skip to Main Content

Java User Groups

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Invalid key code

4066777Aug 19 2019 — edited Aug 19 2019

很简单的一个程序,Windows10系统在德语环境下启动如下程序,总是报错:

Exception in thread "main" java.lang.IllegalArgumentException: Invalid key code

at sun.awt.windows.WRobotPeer.keyPress(Native Method)

at java.awt.Robot.keyPress(Robot.java:354)

at testRobot.Main7.main(Main7.java:21)

代码如下;

import java.awt.AWTException;

import java.awt.Robot;

import java.awt.event.KeyEvent;

public class Main7 {

public static void main(String[] args) throws AWTException {

Robot robot = new Robot();

robot.setAutoDelay(300);

robot.delay(5000);

robot.keyPress(KeyEvent.VK_MINUS);

robot.keyRelease(KeyEvent.VK_MINUS);

robot.keyPress(KeyEvent.VK_OPEN_BRACKET );

robot.keyRelease(KeyEvent.VK_OPEN_BRACKET );

robot.keyPress(KeyEvent.VK_SEMICOLON);

robot.keyRelease(KeyEvent.VK_SEMICOLON );

robot.keyPress(KeyEvent.VK_QUOTE);

robot.keyRelease(KeyEvent.VK_QUOTE );

}

}

有没有什么办法能够解决,备注(上面四个键值代表德语的ßüöä)

Comments

user11688070
in workspace go to navigate-->adminster -->classic application administration-->consolidation administration-->then from left menu expand tasks-->click consolidation administration--> click register application. Select the Cluster name and then select the application name and click register.

Kumar
Chanti
If you are not able to follw the above proceedure you do that manually just by entering the same credentials in "HFM Application Registration.exe" that would be placed under "HFM Directory\Server\HFM Application Registration.exe".
1 - 2

Post Details

Added on Aug 19 2019
0 comments
324 views